[resolved] Pagination by Year with multiple loops, or loop inside of a loop. (3 posts)

  1. jeanmeslier
    Posted 3 years ago #

    Hello all,

    I am trying to create a page that runs two loops, or a loop inside of a loop that divides my archives into year groups and paginates two years at a time. So far I've been able to produce two groups of years using a loop within a loop, but when I try to paginate it, it breaks. You can see what I have running here: http://ck.prosthes.us/cat/exhibitions

    My code:

    Any help is much appreciated. Thanks!


  2. jeanmeslier
    Posted 3 years ago #

    Oh, I wanted to note, it is not the Ajax that is breaking it, as it also does not work when it is disabled.


  3. jeanmeslier
    Posted 3 years ago #

    So I wound up running the two loops with wp_reset_query and using a PHP Session variable to navigate between years as the pages advanced or receded. So, not true pagination, but sufficient for my purposes.

Topic Closed

This topic has been closed to new replies.

About this Topic