WordPress.org

Ready to get started?Download WordPress

Forums

WP-PageNavi
[resolved] Last page is incorrect on first page (4 posts)

  1. Marcel Bootsman
    Member
    Posted 1 year ago #

    When clicking the "Last page" button, a 404 is displayed. This is because the number of pages is incorrect. On the first page the last page number is 496. When clicking on the page 2 link, the last page is 100, and that link works.

    Any idea where I need to look to solve this?

    http://wordpress.org/extend/plugins/wp-pagenavi/

  2. keesiemeijer
    moderator
    Posted 1 year ago #

  3. Marcel Bootsman
    Member
    Posted 1 year ago #

    Kees,

    thanks for your tip, forgot to look there first. There were two loops on the page, one for the first page, and one for the other pages.
    Guess what, the $paged parameter was not passed in the loop for the first page...

    Solved!

  4. keesiemeijer
    moderator
    Posted 1 year ago #

    No problem. I'm glad you found solution.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic