We're merging with GenerateBlocks! Learn more here.

[Support request] Pagination not working

Please login to receive premium support.

Support for the free plugin can be found here.

Home Forums Pro Support Pagination not working

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #27654
    Gerik
    Participant
    #27915
    Leo
    Moderator

    Hi Gerik,

    Have you tried disabling all plugins except WP Show Posts to eliminate any conflicts?

    #27953
    Gerik
    Participant
    #27966
    Leo
    Moderator

    Can you link us to the page in question?

    Are there any custom functions added to the site?

    #28093
    Gerik
    Participant

    You have to log in.
    https://www.marawealth.com/weekly-game-plan-2/

    support@generatepress.com

    In the second video, everything was disabled and the default WP theme was used.

    #28148
    elvin
    Moderator

    Hi there,

    Can you send us the credentials to be able to log-in and check the back-end for any issues?

    You can send the details on our contact page here: https://wpshowposts.com/contact/

    #28188
    elvin
    Moderator

    Thanks!

    There’s a known issue with offset and pagination when you have 2 WPSP lists on one page. It’s a wp_query bug.

    If I may suggest a workaround, can you try removing the offset on WGP Archive?

    You then use this PHP snippet:

    add_filter('post_link', 'track_displayed_posts');
    add_action('pre_get_posts','remove_already_displayed_posts');
     
    $displayed_posts = [];
     
    function track_displayed_posts($url) {
      global $displayed_posts;
      $displayed_posts[] = get_the_ID();
      return $url; // don't mess with the url
    }
     
    function remove_already_displayed_posts($query) {
     global $displayed_posts;
     $query->set('post__not_in', $displayed_posts);
    }
Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.