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 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!