Forums

[resolved] Pagination conflict with two Loops on one page?! (5 posts)

  1. rgbk
    Member
    Posted 1 year ago #

    Hi

    My client has a blog which needs to have teaser mini posts along the side.

    I created a "Teaser" category.
    I excluded the Teaser category from the main loop.
    In the sidebar, I've created another loop, but this time it only shows Teaser posts.

    Result:
    Does as it should.

    The Bug:
    The paging system on the footer now uses the last loop as reference, when I need it to use the first main blog loop as the reference. So now, I get no paging system.

    Am I approaching this wrong?
    Is there a way to show category specific posts without using the loop?

    Would really appreciate some help!
    Best
    Marc

  2. Mark / t31os
    Moderator
    Posted 1 year ago #

    Put wp_reset_query() after your second query.

  3. rgbk
    Member
    Posted 1 year ago #

    YOU
    ARE
    THE
    CAT
    !

  4. Mark / t31os
    Moderator
    Posted 1 year ago #

    hehe... so i take it that helped?

  5. theendtimes
    Member
    Posted 1 year ago #

    This just helped me out Greatly! Thanks Mark! You definitely are THE CAT !

Topic Closed

This topic has been closed to new replies.

About this Topic