Site logo

Archived topic

Featured image in custom post type

3 replies · Started by Harpreet Kumar on December 27, 2020

Viewing posts 1–4 of 4

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.

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.

Excellent solution Elvin.

This is why I love GeneratePress.

Thanks a lot 😊

No problem. :D

This archived topic is closed to new replies.