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 trialEtna Peter
3,604 PointsI need help with 3 fill in the blank type questions from the Word Press theme development Loop quiz
- To echo out the link to a post or page within a loop, you would use the ______________ () function.
Complete the code for the shorthand Loop below: <?php if (_______________ ): ______________ (have_post() ): _________;?>
The ________________() function will display the title of a blog post or page within the loop.
2 Answers
Victor Ruiz
16,570 PointsHi Etna, Here are the solutions to the quiz which were reference throughout the two videos. Hope it helps!
- the_permalink
- <?php if( have_posts() ): while ( have_posts() ) : the_post() ; ?>
- the_title