How to re-paginate after deleting posts... (1 post)

  1. andrewpeacock
    Posted 8 years ago #

    I'm using the the_posts filter to remove certain the $the_posts array, depending on whether the user is registered or not and on their registration date (using some post meta-data).

    But, what I'm finding is that pagination is set when the list of posts is first built, and is not re-calculated after I delete any relevant posts.

    As such, each page has a varying number of posts displayed, depending on how many I delete for that user.

    Does anyone know how to re-paginate AFTER I run the the_posts filter?

    Many thanks in advance,

Topic Closed

This topic has been closed to new replies.

About this Topic