[Resolved] Featured image in custom post type

Home Forums Support [Resolved] Featured image in custom post type

Home Forums Support Featured image in custom post type

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1596147
    Harpreet Kumar

    I have disabled featured images on my blog(single post) from customizer.

    But I want to display it on each cutsom single post type below the title.

    For example: https://gpresstheme.com/website/wp-blogging-101/

    Do you have any idea?

    Many thanks.

    Harpreet Kumar

    #1596162
    Elvin
    Staff
    Customer Support

    Hi,

    You should be able to set a Layout element for this.

    https://docs.generatepress.com/article/layout-element-overview/

    You can set the Layout element with “Featured Image” checked on its Disable element tab.

    You then set its display rule location to post all post and add an exclude rule for your custom post type.

    This way, disabling featured image applies to all posts EXCEPT your custom post type.

    A wise man once said:
    "Have you cleared your cache?"

    #1596193
    Harpreet Kumar

    Excellent solution Elvin.

    This is why I love GeneratePress.

    Thanks a lot ๐Ÿ˜Š

    Harpreet Kumar

    #1596203
    Elvin
    Staff
    Customer Support

    No problem. ๐Ÿ˜€

    A wise man once said:
    "Have you cleared your cache?"

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