Title: Nesting have_posts()
Last modified: August 18, 2016

---

# Nesting have_posts()

 *  [arador](https://wordpress.org/support/users/arador/)
 * (@arador)
 * [18 years, 11 months ago](https://wordpress.org/support/topic/nesting-have_posts/)
 * I’m working on a very heavily modified unfinished theme for my school (Swarthmore
   College)’s daily newspaper.
 * On the pages for the single posts, I’m running into a small problem.
 * Basically, the page is set up like this:
 * HEADER (post title, excerpt, author, date)
    SIDEBAR (below right of the header,
   with headlines from 3 other categories.) BODY (text of the post)
 * The problem is, to get the sidebar headlines, I need to call the other categories.
   So when I call the_content, it places the wrong story content.
 * Is there any easy way to fix this? I don’t want to absolutely position the sidebar,
   because the header block can change in height.
 * Also note, this page appears to be rather broken in IE. I’ll be fixing that eventually—
   I’ve got until late August to finish this entirely. Also, this is my first WordPress
   theme ever (I’ve fiddled before, but nothing this serious) so the code is incredibly
   messy at times. I basically learned how to use CSS solely to create this. Bear
   with me.
 * [http://arador.org/gazette/2007/05/11/haverfords-sharpless-and-our-sharples/](http://arador.org/gazette/2007/05/11/haverfords-sharpless-and-our-sharples/)
   is an example, but it is happening for all of the stories.
 * If you have any other comments on the theme not related to this question, I’d
   love to hear them. Email me: mskorpe1 at swarthmore dot edu

Viewing 1 replies (of 1 total)

 *  [colinbm](https://wordpress.org/support/users/colinbm/)
 * (@colinbm)
 * [18 years, 10 months ago](https://wordpress.org/support/topic/nesting-have_posts/#post-580578)
 * I think this might be what you’re after:
 * [http://codex.wordpress.org/The_Loop#Multiple_Loops_Example_1](http://codex.wordpress.org/The_Loop#Multiple_Loops_Example_1)

Viewing 1 replies (of 1 total)

The topic ‘Nesting have_posts()’ is closed to new replies.

## Tags

 * [have_post](https://wordpress.org/support/topic-tag/have_post/)
 * [loop](https://wordpress.org/support/topic-tag/loop/)
 * [nesting](https://wordpress.org/support/topic-tag/nesting/)

 * 1 reply
 * 2 participants
 * Last reply from: [colinbm](https://wordpress.org/support/users/colinbm/)
 * Last activity: [18 years, 10 months ago](https://wordpress.org/support/topic/nesting-have_posts/#post-580578)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
