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 "Featured Image" isn't working on my Custom Theme.

Hey guys,

I've setup a website using WordPress and using all the settings that I've learned on Team Treehouse and when I go to add a blog post, the "Featured Image" widget isn't showing.

I've Googled and it says that this can be based on your theme. I've reverted my site back to a WordPress default one and the "Featured Image" width shows fine.

Any tips for how to start troubleshooting this one and to get Featured Image back?

EDIT - I found a small work around. If I change the theme to a standard one, upload my blog image, then revert back to my custom theme .... The featured image shows fine :)

Not really solved the problem, but it's something that's workable.

2 Answers

Pretty sure you'll need to add theme support for the featured images, or "post_thumbnails". Try adding the below into your theme's functions.php.

add_theme_support( 'post-thumbnails' );

Thanks bro!

Took 2 seconds and voila! working now :)