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 trialDavid Endersby
24,915 PointsFrom Bootstrap to Wordpress Quiz
So theres a few questions I can't seem to get right in the final quiz.
Firstly theres: Write out the function and parameter needed to enable featured images in a WordPress theme? I thought it was add_theme_support( 'post-thumbnails' ); But apparently not
Then theres: If we are inside of a Loop and want to get the current count, we would write $the_query-> which surely is $current_post + 1;
6 Answers
Dominic Francis
5,048 PointsI think its just current_post
Jason Early
52,944 PointsFor the add_theme_support( 'post-thumbnails' ) drop the last ";".
David Endersby
24,915 PointsIts the plight of the Semi colon again. Thank you.
marieyvonnecombot
27,193 PointsThanks for your answer : add_theme_support( 'post-thumbnails' ) because if you enter : add_theme_support ( 'post-thumbnails' ) let's say one more space it does'nt work :-))
Jason Early
52,944 PointsNo problem, I haven't figured out the current_post + 1; tho. At first I thought you didn't need the "$" on current_post.
David Endersby
24,915 PointsYeah, I've tried multiple combinations but can't get it to work
marieyvonnecombot
27,193 PointsI agree with this comment : I can't get it to work too.
Srinivasa Prasad
13,390 PointsI was stuck with both of the questions, thanks guys for the awesome help!!!
James Gill
Courses Plus Student 34,936 PointsJames Gill
Courses Plus Student 34,936 PointsThis is the correct answer. just "current_post".
Jason Early
52,944 PointsJason Early
52,944 PointsAwesome. Thanks guys!