WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Pagination breaks after 79 Pages. (18 posts)

  1. Tony Hunt
    Member
    Posted 1 year ago #

    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?

  2. esmi
    Forum Moderator
    Posted 1 year ago #

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

  3. Tony Hunt
    Member
    Posted 1 year ago #

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

    Doesnt work on page 80 without the theme ;)

  4. esmi
    Forum Moderator
    Posted 1 year ago #

    You are not using the Twenty Twelve theme yet...

  5. Tony Hunt
    Member
    Posted 1 year ago #

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

  6. esmi
    Forum Moderator
    Posted 1 year ago #

    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.

  7. Tony Hunt
    Member
    Posted 1 year ago #

    Understood, and done ;)

  8. Tony Hunt
    Member
    Posted 1 year ago #

    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?

  9. esmi
    Forum Moderator
    Posted 1 year ago #

    How many published Posts do you currently have in total?

  10. esmi
    Forum Moderator
    Posted 1 year ago #

    is that a stored value or calculated on the fly?

    All pagination is done dynamically.

  11. Tony Hunt
    Member
    Posted 1 year ago #

    821 posts on this one.

  12. esmi
    Forum Moderator
    Posted 1 year ago #

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

  13. Tony Hunt
    Member
    Posted 1 year ago #

    Crap. Misquery...780 published.

  14. esmi
    Forum Moderator
    Posted 1 year ago #

    So the pagination is OK, yes?

  15. Tony Hunt
    Member
    Posted 1 year ago #

    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

  16. esmi
    Forum Moderator
    Posted 1 year ago #

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

  17. Samuel Wood (Otto)
    Tech Ninja
    Posted 1 year ago #

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

    Crap. Misquery...780 published.

    Are you sure you're doing your math right on this one? 780/10 = 78 pages total.

    Note that the permalinks don't "get built" like that. It doesn't have to build one for each page, just one for all pages. The math is done on-the-fly.

  18. Tony Hunt
    Member
    Posted 1 year ago #

    It was the theme. It's basing on 5 posts per page, where if we clean out the custom theme, the pagination stops at p79 with the very first post(oldest) on the blog.

    I've corrected the problem now.

    Again thanks! (including the math lesson ;)

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags