WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Multiple loops and nextpage. (2 posts)

  1. Zoutesnor
    Member
    Posted 7 years ago #

    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.

  2. Zoutesnor
    Member
    Posted 7 years ago #

    Ok, I've solved it for myself, right before the second asides loop I've added the code:

    global $wp_query;
    $wp_query->set('page',1);

    This did the trick for me.

Topic Closed

This topic has been closed to new replies.

About this Topic