Site logo

Archived topic

Custom post types' featured image, title not appearing

6 replies · Started by Scrat on May 23, 2019

Viewing posts 1–7 of 7

As the title says - for some reason, the_content shows up in custom post types, but featured images and titles do not unless I specifically go into content-single-{post-type}.php and add the_post_thumbnail and comment out the conditional if ( generate_show_title() ) around the_title. So it looks like generate_before_content and generate_show_title are not firing, but I can't for the life of me figure out why. Any help would be much appreciated!

Hi Leo,

The featured images are not disabled. I should have mentioned this in my earlier post, but the featured images are displaying successfully on the blog archives and the blog single posts.

Any chance you can link us to the site in question?

Unfortunately, I can't. It's a live site I can't push the changes to until it's ready to go.

Well, I feel dumb. I did, in fact, have those two things disabled for those posts on the Elements page. So nevermind! All is well. Thank you!

Glad you figured out :)

This archived topic is closed to new replies.