Title: Loop within a loop and comments
Last modified: August 19, 2016

---

# Loop within a loop and comments

 *  [rosschapman](https://wordpress.org/support/users/rosschapman/)
 * (@rosschapman)
 * [17 years, 4 months ago](https://wordpress.org/support/topic/loop-within-a-loop-and-comments/)
 * So I have a scenario where I need a page setup and ordered as follows:
 * 1) Loop 1 returning 1 post from category A
    2) Loop 2 returning 4 posts from 
   category B 3) Return comments from the Loop 1
 * It seems like I could nest Loop 2 into Loop 1 somehow, and then when I run the
   comments_template() tag after both loops, tell WordPress to only return the comments
   for only Loop 1. Make sense?

The topic ‘Loop within a loop and comments’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [rosschapman](https://wordpress.org/support/users/rosschapman/)
 * Last activity: [17 years, 4 months ago](https://wordpress.org/support/topic/loop-within-a-loop-and-comments/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
