Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

WordPress WordPress Theme Development Custom Post Type Templates in WordPress Coding Your Own Custom Post Type Templates

Featured Image section not showing up on page.

Ive added the

add_theme_support('post-thumbnails');

to my functions.php file, and saved and uploaded everything to my server a thousand times, however the featured image area is still not showing up. ANy guesses as to why?

4 Answers

Jacobus Hindson
Jacobus Hindson
14,429 Points

Ahh ok there are 3 things I can think of.

  1. Check your Screen Options (Found in the top right of your Wordpress Admin section) and check to see that Featured Imageis there and checked.
  2. If it is a Custom Field Type you are missing it from then it is probably your setup in CTP UI, make sure you go to settings (For your custom post type) and ensure it have Featured Image as part of its rule set.
  3. If #2 is ok check Custom Fields Plugin and ensure you are not hiding the Image from the admin/post section. Again in settings at the bottom of the ACF screen.

Hope that helps

Thanks very much, number two did the trick.

Patrick Koch
Patrick Koch
40,496 Points

Thanks, helped me too.

Add New Post Type ->Settings->Supports

g patrick

Bobby Verlaan
Bobby Verlaan
29,461 Points

thnks. number two did the trick. Somehow you need to specifically set the Custom Field Type settings of portfolio to support the "Featured Image" box.

Jacobus Hindson
Jacobus Hindson
14,429 Points

Hi Kyle,

In your theme pages (single.php, page.php etc) do you have a section calling the following?

<?php the_post_thumbnail(); ?>

as part of a loop? The add_theme_support('post-thumbnails'); is certainly required to enable the images but you still need to call them.

Hi Jacobus,

I've inserted the code into my page.php file as suggested and to no avail. Let me try and clarify what im asking as well. I seem to be missing the featured image area in my actual admin page. I added the code that was talked about at 6:40 in the video (the only code added during this video) to get that to show up, however it is still not showing up.

Note - one simple thing that got me (which may help others)...

On your Custom Field - under Options - those items checked will be HIDDEN from your add new custom post. If you are not seeing your Set featured image section in the sidebar - it is likely that.

I mistakenly read the options to "check what you want on edit screen" when in fact it is "check what you want hidden on the edit screen".

Duh ;)