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 The WordPress Loop The WordPress Loop Quiz

Christopher Estes
Christopher Estes
1,132 Points

<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?> seems to return a wrong answer in this quiz.

The question about the syntax of the loop seems not to accept the correct answer.

1 Answer

Nicholas Mercer
Nicholas Mercer
2,319 Points

Might be a glitch, I just took the quick and the following works without issues:

<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>

have_posts(), while, and "the_post()" would be each of the three fields.

Image Validation: http://imgur.com/a/AaUg9

-Nick