• The pagination works well on the blog and category pages, but on the archives page it shows 1-10 pages when there are maybe 15 posts only.

    So if someone clicks on page 7, there really is no page 7 and it throws a 404.

    My guess is that it’s counting the total number of posts and not the number of posts for a certain date, but I haven’t looked at the source code yet.

    https://www.ads-software.com/extend/plugins/wp-paginate/

Viewing 2 replies - 1 through 2 (of 2 total)
  • jeanpatrick – thanks for the heads-up. Perhaps WP is doing some logic after the query. The plugin is using the following code to determine how many posts there are:

    $pages = intval(ceil($wp_query->found_posts / $posts_per_page));

    I’ll take a look and see if I can figure something out.

    Thanks,
    Eric

    I’m not able to reproduce an issue. Are you using a custom query?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: WP-Paginate] Wrong number of pages for archive’ is closed to new replies.