Archived topic
Featured image appears twice on custom posts
4 replies · Started by NBC on July 20, 2020
Greetings:
I'm creating a large set of employee portraits.
My team-gallery plug-in creates a custom post type that includes a featured image.
Unfortunately, the featured image shows up twice on each post: once apparently from GP/GPP, and once from the plug-in.
I see the same problem on the desktop view and on mobile. Support for the plug-in asserts that this is a theme-related issue, or I would not be posting about it here.
I've included a link to one of the profiles in the secure URL area. It's easy enough to figure out how to look at others.
WP/GP/GPP/plug-in all up to date. No caching plug-ins.
How do I get rid of the main featured image [without disabling it on regular posts]? I'm only adding it in one place, and yet I'm getting a two-for-one special I don't need.
To reiterate: Plug-in author says this is a theme-related issue.
Using "Inspect Element" in Firefox, I can see that the second instance of the featured image appears to come from the plug-in and the first from the theme.
Hi there,
You can disable the theme featured image within those posts types.
1. Create a new Layout Element: https://docs.generatepress.com/article/layout-element-overview/
2. In Disable Elements (module must be active), select Featured Image.
3. Choose this post type in your Display Rules.
That should do it :)
YESSS! Thank you, Tom. That did it!
You're welcome :)