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

Trouble with feature image in portfolio.

Everything is working fine accept: after adding the add_theme_support('post-thumbnails'); to the functions.php file I still don't get the featured image option. also I don't get the attributes box. Is this possibly because I am using a local installation of WordPress or is there some other setting I should check for?

1 Answer

Found answer to be ticking the box in CPT UI for Featured Image under settings.

Luke DePass
Luke DePass
6,843 Points

Yep, go to CPT UI, select "portfolio" or what ever your custom post type is called, then open the "sections" dropdown and within that is a section called "support" - just check the box next to featured image.