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 trialcaroline
6,974 PointsHas anyone actually got images to display using only the instructions in this video and the previous ones?
I've followed the video instructions, but my images aren't displaying. I've noticed that many others have had the same problem. I'm not sure if the problem is that I've made a typo and I need to correct it, or that the instructions in the video are wrong. Normally I wouldn't assume the video instructions are wrong; however, someone here https://teamtreehouse.com/community/solution-for-portfolio-page-not-displaying-portfolio-type-posts-and-featured-images has posted a possible solution (which seems to be endorsed by Zac), which seems to imply that the code he's given in the video just isn't going to work, and the solution is to add code in from another file.
I'm reluctant to spend hours going through my code looking for typos if it turns out that's not the problem, so I'd be really interested to know if anyone has got this to work simply by following what Zac says in the videos up until this point.
Thanks! Caroline
4 Answers
Michael Hazani
1,043 PointsCan confirm, video instructions mostly work (And in the small cases they don't there are tons of helpful comments from people who experienced this before.)
A lot of people here seem to think the instructions are broken or outdated - personally I haven't seen a single case where that was true, except one minor omission on Treehouse's part (that I commented on).
caroline
6,974 PointsOK - to answer my own question - following the instructions thus far DOES work! At least as far as 07:04 in the video, where the pink star shows up on the page (I haven't progressed further than that as yet). My mistake was that I hadn't set the featured image properly in a previous video. I hope that helps anyone who's wondering whether it's their mistake or there's something else going on.
Andreas Foltyn
1,828 PointsThe code does indeed work. BUT I have to check all the checkboxes in the Custom Posttype Plugin support settings - not only 'title' and 'featured images' like some users mentioned. Otherwise I get an infinite loop and the browser crashes.
suyash patankar
2,310 PointsI had to change add_theme_support( 'post-thumbnails' , array('portfolio'));
to add_theme_support( 'post-thumbnails' );
to make featured image work