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

David Endersby
David Endersby
24,915 Points

From 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
Dominic Francis
5,048 Points

I think its just current_post

This is the correct answer. just "current_post".

Jason Early
Jason Early
52,944 Points

For the add_theme_support( 'post-thumbnails' ) drop the last ";".

David Endersby
David Endersby
24,915 Points

Its the plight of the Semi colon again. Thank you.

Thanks 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
Jason Early
52,944 Points

No 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
David Endersby
24,915 Points

Yeah, I've tried multiple combinations but can't get it to work

I agree with this comment : I can't get it to work too.

Srinivasa Prasad
Srinivasa Prasad
13,390 Points

I was stuck with both of the questions, thanks guys for the awesome help!!!