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 Common WordPress Functions Used with the Loop

1 loop for many category in home page

i need help,

i wondering how to create loop for many category, is that posible? coz i can't get the actual codex for 1 loop for many category, i want to create template like http://themes.tielabs.com/sahifa/. for magazine template.

And how to create 1 loop, but in that loop there is 2 different section of layout but still in one category, it's like (section A Image + title) and (section B only title)

1 Answer

Sue Dough
Sue Dough
35,800 Points

I would just use a loop for each specific category you want to post if you wan't to replicate how that site is done. Make sure to do a reset though https://codex.wordpress.org/Function_Reference/wp_reset_query .