Title: WordPress loop tag breaking layout when added somehow&#8230;
Last modified: August 19, 2016

---

# WordPress loop tag breaking layout when added somehow…

 *  [.watts.](https://wordpress.org/support/users/watts-1/)
 * (@watts-1)
 * [15 years, 9 months ago](https://wordpress.org/support/topic/wordpress-loop-tag-breaking-layout-when-added-somehow/)
 * I recently overhauleed my website which incorporates wordpress into it. I set
   up my layout so that there is a top area, a middle area and footer area.
 * In my middle container div, I have the content div to hold all posts(and the 
   wp loop) and floating beside it is a div acting as the sidebar to hold my twitter
   widget.
 * Everything is happy and sunny with my layout until I add in the wordpress loop
   tag. Once the wp loop tag is added, the layout suddenly breaks and the sidebar
   jumps to the next line under the content div.(when I take the loop tag out, everything
   is fine again)
 * I can’t figure out what the F is going on. I started over completely thinking
   I had flubbed something along the way but am getting the same frustrating result.
 * **Here is the php code….**
 *     ```
       [huge chunk of code moderated - please use pastebin.com for this]
       ```
   

The topic ‘WordPress loop tag breaking layout when added somehow…’ is closed to 
new replies.

## Tags

 * [break](https://wordpress.org/support/topic-tag/break/)
 * [div](https://wordpress.org/support/topic-tag/div/)
 * [layout](https://wordpress.org/support/topic-tag/layout/)
 * [loop](https://wordpress.org/support/topic-tag/loop/)
 * [problem](https://wordpress.org/support/topic-tag/problem/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [.watts.](https://wordpress.org/support/users/watts-1/)
 * Last activity: [15 years, 9 months ago](https://wordpress.org/support/topic/wordpress-loop-tag-breaking-layout-when-added-somehow/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
