[resolved] Pagination broken with Groups (6 posts)

  1. perceval84
    Posted 3 years ago #

    I'm experiencing a problem with navigation links and posts per page.

    It seems the links "older entries" and "previous entries" are built before the filter on capabilities is executed, when the loop has already done its job.

    For example:

    • I configured wordpress for showing 10 posts per page
    • there are 10 posts on first page and 4 on second page before the filter operation (or if I deactivate the plugin)
    • when Groups is activated, it removes 3 of them on first page because they are inaccessible to the user: now I only see 7 posts in home, and 4 in second page

    This is not what I expected: the user should see 10 posts in home, and 1 in second page...
    There are extreme cases in which all the posts in a page are filtered, and I only see an empty page.

    I use the theme twentytwelve at the moment, and I build the pagination in this way:
    <?php wp_pagenavi(); ?>

    Also I tried the plugin WP-Navi but nothing changed...

    Do you have any hints?

    I hope my problem is clear...



  2. itthinx
    Plugin Author

    Posted 3 years ago #

    Do you still experience this with the latest release? If I remember well this has been fixed (although it doesn't appear in the changelog). If not, please re-open the topic or post a comment on http://www.itthinx.com/plugins/groups/ where I attend to more frequently than here.

  3. perceval84
    Posted 3 years ago #

    I'm sorry, in my case the problem it's still there.

    Whether I use a plugin for page numbers, or the standard wordpress pagination, the number of posts listed in pages still changes if I activate Groups.

    Maybe I'm wrong, but it seems Groups keeps filtering (and reducing) the post array only after the pagination is prepared...

    Thanks for the help...

  4. Kirk Wight
    Theme Wrangler
    Posted 3 years ago #

    I have the same problem, with the latest version 1.3.8 and WordPress 3.5. I've posted to the above itthinx.com page also, but to summarize for others:

    "The number of post returned per page seems to be based on total number of posts, not the total number a user can see, throwing off the pagination. If “Settings > Reading > Blog pages show at most” is set to 10 posts, and the first ten posts returned by the query are not viewable by the user, then a blank page will be displayed. If posts 11-13 are viewable, however, http://mysite.com/page/2/ will show them. Likewise, if pagination is set at 10 posts, and 3 posts are not viewable to the user (restricted by Groups), that user will only see 7 posts for that page (rather than the first 10 viewable posts)."

  5. Frank Yin
    Posted 3 years ago #

    I also have this problem, with WordPress 3.4.2 and Groups 1.3.8

  6. itthinx
    Plugin Author

    Posted 3 years ago #

    Update Groups?

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Groups
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic