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 trialKyle Binger
3,357 PointsFeatured 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
14,429 PointsAhh ok there are 3 things I can think of.
- Check your Screen Options (Found in the top right of your Wordpress Admin section) and check to see that Featured Imageis there and checked.
- 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.
- 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
Jacobus Hindson
14,429 PointsHi 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.
Kyle Binger
3,357 PointsHi 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.
Scott Mail
7,887 PointsNote - 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 ;)
Alexis Leblanc-Isabelle
9,558 PointsAlexis Leblanc-Isabelle
9,558 PointsSolved my problem thank you !
Kyle Binger
3,357 PointsKyle Binger
3,357 PointsThanks very much, number two did the trick.
Patrick Koch
40,498 PointsPatrick Koch
40,498 PointsThanks, helped me too.
Add New Post Type ->Settings->Supports
g patrick
Bobby Verlaan
29,538 PointsBobby Verlaan
29,538 Pointsthnks. number two did the trick. Somehow you need to specifically set the Custom Field Type settings of portfolio to support the "Featured Image" box.