Support » Fixing WordPress » Multiple loops and nextpage.

  • Resolved Zoutesnor


    On our blog I’m using two loops, one main loop and one for asides showing only one category in the sidebar. Today one of the editors posted a blog entry which was multipaged i.e. the post was divided by the <!–nextpage–> tag. When this came online, we noticed that if we’d go to page two of the post, all of the asides would display the same the_content() as was displayed in the main loop. After searching I came to this old ticket, and I wondered if this has something to do with it. Anyone have some info on this? I don’t want to report a bug unless I’m really sure it is one.

Viewing 1 replies (of 1 total)
  • Ok, I’ve solved it for myself, right before the second asides loop I’ve added the code:

    global $wp_query;

    This did the trick for me.

Viewing 1 replies (of 1 total)
  • The topic ‘Multiple loops and nextpage.’ is closed to new replies.