Title: multiple loops / different categories
Last modified: August 18, 2016

---

# multiple loops / different categories

 *  [ryder22](https://wordpress.org/support/users/ryder22/)
 * (@ryder22)
 * [20 years, 2 months ago](https://wordpress.org/support/topic/multiple-loops-different-categories/)
 * hey guys,
 * i’ve been searching for an hour and can’t find the answer i think should be easy…
 * I’d like to have 2 different loops on a page. one to display the content of category“
   News” and one to display the category “Shows”….
 * How do i specify a particular category in each loop?!
 * Your help would be greatly appreciated!
 * thanks!
    ryder

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

 *  [moshu](https://wordpress.org/support/users/moshu/)
 * (@moshu)
 * [20 years, 2 months ago](https://wordpress.org/support/topic/multiple-loops-different-categories/#post-348143)
 * Did you have a chance to take a look at the examples of multiple loops on this
   page? > [The_Loop](http://codex.wordpress.org/The_Loop)
 *  Thread Starter [ryder22](https://wordpress.org/support/users/ryder22/)
 * (@ryder22)
 * [20 years, 2 months ago](https://wordpress.org/support/topic/multiple-loops-different-categories/#post-348236)
 * Moshu,
 * Yeah, i read that over and over… but, all the examples are “If it’s in Category
   3, THEN do this…” but all i want is something much simpler – “Display if it’s
   in Category 3″…
 * Does this make sense?
 * I imagine it’s something easy like the following that’s not an IF/THEN statement…
   
   <?php ( in_category(‘3’) ) { ?>
 *  [silkjaer](https://wordpress.org/support/users/silkjaer/)
 * (@silkjaer)
 * [20 years, 2 months ago](https://wordpress.org/support/topic/multiple-loops-different-categories/#post-348307)
 * You can make a custom query..
 * `<?php $queryname = new WP_Query('cat=1');
    while ($queryname->have_posts()) :
   $queryname->the_post(); ?>
 * // Here's the loop
 * <?php endwhile; ?>

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

The topic ‘multiple loops / different categories’ is closed to new replies.

## Tags

 * [loops](https://wordpress.org/support/topic-tag/loops/)
 * [multiple](https://wordpress.org/support/topic-tag/multiple/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 3 participants
 * Last reply from: [silkjaer](https://wordpress.org/support/users/silkjaer/)
 * Last activity: [20 years, 2 months ago](https://wordpress.org/support/topic/multiple-loops-different-categories/#post-348307)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
