• Resolved DK999k

    (@dk999k)


    Hi,

    I am currently using multiple loops in a category template to display post excerpts in different formats on the page. I’m using a count to facilitate this, as follows:

    [Code moderated as per the Forum Rules. Please use the pastebin]

    The problem is that I also use pagination, so if on page 2 there are less posts available than the number defined in the count value, it will throw off all of the counts after it, which is causing overflow issues. ‘have_posts()’ should be returning false after there are no more posts to display, eliminating the issue, however this is not happening here.

    Any guidance on how to resolved this issue would be much appreciated!!

  • The topic ‘Multiple loops in category template’ is closed to new replies.