Title: Opinion, please: multiple loops
Last modified: August 18, 2016

---

# Opinion, please: multiple loops

 *  Resolved [hooopla](https://wordpress.org/support/users/hooopla/)
 * (@hooopla)
 * [20 years, 10 months ago](https://wordpress.org/support/topic/opinion-please-multiple-loops/)
 * I want to display items from one category at the top of my site, followed by 
   items in another category. (There are only the two categories and no item belongs
   to both.) And I want both categories to display in date order.
 * I’ve studied the examples of multiple loops in the Codex and have an index.php
   that’s doing what I want. My only doubt is that I may not have coded it as efficiently
   as possible, and there may be potential drawbacks with what I’ve done that I’m
   not aware of.
 * **Would some kind, knowlegeable person please take a look at this [index.php](http://ohenly.com/index.txt)
   code and give me your opinion?**
 * Thanks.

Viewing 8 replies - 1 through 8 (of 8 total)

 *  [clarke1866](https://wordpress.org/support/users/clarke1866/)
 * (@clarke1866)
 * [20 years, 10 months ago](https://wordpress.org/support/topic/opinion-please-multiple-loops/#post-225390)
 * Looks pretty good to me dude. Although your site doesn’t come up (its blank).
 *  Thread Starter [hooopla](https://wordpress.org/support/users/hooopla/)
 * (@hooopla)
 * [20 years, 10 months ago](https://wordpress.org/support/topic/opinion-please-multiple-loops/#post-225391)
 * Thanks! (This code is running on a test site, which is why you don’t see it.)
 *  [moshu](https://wordpress.org/support/users/moshu/)
 * (@moshu)
 * [20 years, 10 months ago](https://wordpress.org/support/topic/opinion-please-multiple-loops/#post-225407)
 * I was wondering where did you get this template tag:
    `<?php wp_pagenavi()?>`
   I don’t remember it. Which doesn’t mean anything 🙂
 *  Thread Starter [hooopla](https://wordpress.org/support/users/hooopla/)
 * (@hooopla)
 * [20 years, 10 months ago](https://wordpress.org/support/topic/opinion-please-multiple-loops/#post-225420)
 * Hi moshu. That’s for GaMerZ’ [WordPress 1.5 Page Navigation](http://www.lesterchan.net/others/downloads.php?id=11)
   plugin.
 *  [moshu](https://wordpress.org/support/users/moshu/)
 * (@moshu)
 * [20 years, 10 months ago](https://wordpress.org/support/topic/opinion-please-multiple-loops/#post-225422)
 * OK then. If I knew all the plugins… 🙂
    The rest of the code seems to be fine.
   But, of course, the main question is: does it work on your test site? If yes,
   then it’s OK, I guess.
 *  Thread Starter [hooopla](https://wordpress.org/support/users/hooopla/)
 * (@hooopla)
 * [20 years, 10 months ago](https://wordpress.org/support/topic/opinion-please-multiple-loops/#post-225434)
 * Yes, it definitely works. But since the index is the heart of most sites, I just
   wanted to be sure I hadn’t made any beginners’ mistakes with this multiple loop.
 * Thanks.
 *  [somefool](https://wordpress.org/support/users/somefool/)
 * (@somefool)
 * [20 years, 10 months ago](https://wordpress.org/support/topic/opinion-please-multiple-loops/#post-225441)
 * this may be of help
 * [http://www.ifelse.co.uk/archives/2005/04/08/query_posts-redux/](http://www.ifelse.co.uk/archives/2005/04/08/query_posts-redux/)
 *  Thread Starter [hooopla](https://wordpress.org/support/users/hooopla/)
 * (@hooopla)
 * [20 years, 10 months ago](https://wordpress.org/support/topic/opinion-please-multiple-loops/#post-225444)
 * Thank you, somefool. That is really helpful!

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘Opinion, please: multiple loops’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 8 replies
 * 4 participants
 * Last reply from: [hooopla](https://wordpress.org/support/users/hooopla/)
 * Last activity: [20 years, 10 months ago](https://wordpress.org/support/topic/opinion-please-multiple-loops/#post-225444)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
