Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable [bw_fields featured] if (Genesis) themes already display it. #18

Open
bobbingwide opened this issue Oct 2, 2016 · 0 comments
Open
Assignees

Comments

@bobbingwide
Copy link
Owner

The [bw_fields featured] shortcode displays the featured image. If this has already been displayed, by the theme, then it gets shown twice. It would be nice if the shortcode could somehow be aware of the fact that the featured image has already been displayed and disable itself.

We need to analyse the situations where the shortcode is used and choose the most appropriate method of enabling / disabling the logic.

Implementation options

The Genesis theme framework sets options for archive displays. If the archive displays excerpts then it can also display featured images. If that option is chosen then the logic to display the featured field can be disabled by setting #theme = false.

@bobbingwide bobbingwide self-assigned this Oct 2, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant