Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

WordPress WordPress Theme Development Custom Post Type Templates in WordPress The Portfolio Homepage

Kyle Shamblin
Kyle Shamblin
9,945 Points

Do I need to select the featured image manually?

Do I need to select the featured image manually? I'm confused, I followed everything to a T as far as I know. In the video it doesn't show him actually selecting a featured image, he only adds the images and edits the page-portfolio.php file. I couldn't get the image to display on the Portfolio page without going into the post and manually choosing a featured image.

1 Answer

You do need to add the featured image to the post manually. He doesn't show you this in the current video, but I believe he does in past videos, when he sets up his test portfolio posts. The template he's writing loops through all the portfolio posts, and if there's a featured image it is grabbed to display on that page. Make sure the 'pink-star' post has a featured image added.

Kyle Shamblin
Kyle Shamblin
9,945 Points

Ok. I thought so, I just wanted to make sure. Thanks for the response!