Triple loop next_posts_link problems (5 posts)

  1. dangayle
    Posted 7 years ago #

    I am designing a triple loop theme that has the latest post isolated, and the rest of the posts alternating into even and odd columns using the_excerpt.

    I'm having an issue with the next_posts_link in the theme. It only rotates one of the columns, while the other two remain current.

    I'd like to keep the latest post isolated, but have the last two columns rotated when the next_posts_link is activated.

    If you know of a better way to do this, I'd much appreciate it.

    The code:

  2. moshu
    Posted 7 years ago #

    1. Don't post long code here - nobody reads it. Use a pastebin service, if necessary; e.g. http://wordpress.pastebin.ca

    2. The next/prev navigation usually doesn't work with multiple Loops.

  3. dangayle
    Posted 7 years ago #

    Thanks. What do people use as the best solution to the next/previous navigation problem when using multiple loops?

  4. moshu
    Posted 7 years ago #

    They don't use it.

  5. dangayle
    Posted 7 years ago #

    Well, using the info from Paging and Custom WordPress Loops at Weblog Tools Collection, I've managed to at least get the next_posts_link to rotate loop 1 and loop 2.

    The issue is now loop 3, which still insists on just sitting there.


Topic Closed

This topic has been closed to new replies.

About this Topic