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

I need help with 3 fill in the blank type questions from the Word Press theme development Loop quiz

  1. To echo out the link to a post or page within a loop, you would use the ______________ () function.
  2. Complete the code for the shorthand Loop below: <?php if (_______________ ): ______________ (have_post() ): _________;?>

  3. The ________________() function will display the title of a blog post or page within the loop.

2 Answers

Hi Etna, Here are the solutions to the quiz which were reference throughout the two videos. Hope it helps!

  1. the_permalink
  2. <?php if( have_posts() ): while ( have_posts() ) : the_post() ; ?>
  3. the_title

2 didn't work for me...I'm a little confused about this one. It feels like filling in a blank analogy form.