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 How to Make a Website with WordPress Custom Post Types and Fields in WordPress Custom Post Types and Fields Quiz

Nicole Solis
Nicole Solis
14,469 Points

What function creates custom loops?

I'm having trouble with the quiz on the content and have gone over the video for Wordpress development and am still not understanding what they are asking. The question says, "To create custom loops in our Wordpress templates, we use the ____ function." I know I'm probably really off but I've tried thinking maybe it was the array function or the child theme, the text editor, and a bunch of other items.

2 Answers

Sue Dough
Sue Dough
35,800 Points

The answer is wp_query. That is the function you use.

For more info on wp_query check out the codex. http://codex.wordpress.org/Class_Reference/WP_Query

Cheers

Nicole Solis
Nicole Solis
14,469 Points

Thank you for the help and link!