[Resolved] Featured image appears twice on custom posts

Home Forums Support [Resolved] Featured image appears twice on custom posts

Home Forums Support Featured image appears twice on custom posts

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #1369820
    NBC

    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.

    #1370095
    NBC

    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.

    #1370143
    Tom
    Lead Developer
    Lead Developer

    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 ๐Ÿ™‚

    #1370287
    NBC

    YESSS! Thank you, Tom. That did it!

    #1371081
    Tom
    Lead Developer
    Lead Developer

    You’re welcome ๐Ÿ™‚

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.