WordPress.org

Support

Support » How-To and Troubleshooting » [Resolved] Pagination breaks after 79 Pages.

[Resolved] Pagination breaks after 79 Pages.

  • I know, I know. Very few people will ever have this problem, but at 10 posts per page, I still have around 190 pages.

    As it happens I don’t want to get rid of or prune them, I’d much rather try and get the pagination to play ball.

    To be clear…I can’t tell if this problems is part of the theme’s functions.php or the inherent pagination code in the WP install.

    example:
    Works just fine: http://tonytown.com/page/79/
    Not working: http://tonytown.com/page/80/
    Not working: http://tonytown.com/page/90/
    Not working: http://tonytown.com/page/120/
    etc.

    Before you ask…I already know this isn’t a plugin issue, and the permalink structure works fine and has been rebuilt a couple times just in case…it’s either the theme or the WP code…just cant tell which.

    Any help?

Viewing 15 replies - 1 through 15 (of 17 total)
  • esmi

    @esmi

    Forum Moderator

    Have you tried switching to the default theme to rule out any theme-specific problems?

    http://tonytown.com/page/80/

    Doesnt work on page 80 without the theme 😉

    esmi

    @esmi

    Forum Moderator

    You are not using the Twenty Twelve theme yet…

    I already did and it didnt make a difference, do you want me to leave it there? If so for how long?

    esmi

    @esmi

    Forum Moderator

    do you want me to leave it there?

    Yes, please.

    If so for how long?

    Until we’ve been able to check out the site.

    Understood, and done 😉

    I think I’ve found it.

    Earlier this afternoon, I set the posts per page from 5 to 10.
    About an hour later, I reset the permalinks.

    I dont think these pages (like /83/) were finished updating on the original permalink structure for those pages…but is that a stored value or calculated on the fly?

    esmi

    @esmi

    Forum Moderator

    How many published Posts do you currently have in total?

    esmi

    @esmi

    Forum Moderator

    is that a stored value or calculated on the fly?

    All pagination is done dynamically.

    821 posts on this one.

    esmi

    @esmi

    Forum Moderator

    I’m only seeing 780 (or less) publically available posts.

    Crap. Misquery…780 published.

    esmi

    @esmi

    Forum Moderator

    So the pagination is OK, yes?

    Yep. Now I know it’s theme related. The last page of clean install pagination shows the very first post..and thats on page 79.

    I didn’t do the math right away and didn’t realize that was it…the actual number of pages would go down after the # of posts per page was reset.

    Still trying to figure out why the theme still thinks there are so many more pages.

    Thanks in advance for you help on this…I needed a kickstart 😉

    -Tony

    esmi

    @esmi

    Forum Moderator

    Could be a faulty custom query (primary or secondary loop) in index.php or one of its related files.

Viewing 15 replies - 1 through 15 (of 17 total)
  • The topic ‘[Resolved] Pagination breaks after 79 Pages.’ is closed to new replies.
Skip to toolbar