Title: Split loop multiple divs
Last modified: August 20, 2016

---

# Split loop multiple divs

 *  Resolved [jasonsweb](https://wordpress.org/support/users/jasonsweb/)
 * (@jasonsweb)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/split-loop-multiple-divs/)
 * Hi,
 * Is it possible to split a loop into multiple divs. I would like to achieve the
   following in my loop:
 *     ```
       <div id="portfolio-images">
       All the images
       </div>
   
       <div id="portfolio-content">
       All the content
       </div>
       ```
   
 * So all the images should be wrapped inside a div, and all the content of the 
   same items should be wrapped inside a div. Is this possible with one loop??
 * Thanks in advance!

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

 *  [Michael](https://wordpress.org/support/users/alchymyth/)
 * (@alchymyth)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/split-loop-multiple-divs/#post-2865011)
 * use `rewind_posts();` between the loops;
 * [http://codex.wordpress.org/Function_Reference/rewind_posts](http://codex.wordpress.org/Function_Reference/rewind_posts)
 * [http://codex.wordpress.org/The_Loop#Multiple_Loops_Example_1](http://codex.wordpress.org/The_Loop#Multiple_Loops_Example_1)
 *  Thread Starter [jasonsweb](https://wordpress.org/support/users/jasonsweb/)
 * (@jasonsweb)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/split-loop-multiple-divs/#post-2865071)
 * Thanks!! Works perfect.

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

The topic ‘Split loop multiple divs’ is closed to new replies.

## Tags

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

 * 2 replies
 * 2 participants
 * Last reply from: [jasonsweb](https://wordpress.org/support/users/jasonsweb/)
 * Last activity: [13 years, 10 months ago](https://wordpress.org/support/topic/split-loop-multiple-divs/#post-2865071)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
