• Leo Blanchette

    (@leoclipartillustrationcom)


    What causes pagination to fail after page two (or sometimes 3) on certain custom taxonomy terms, but others are fine?

    I noticed this is the case with searches, but not with tag browsing which is almost identical.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter Leo Blanchette

    (@leoclipartillustrationcom)

    I’ve made some headway, but still need guidance.

    I found an answer here that has begun to solve the problem: http://wordpress.org/support/topic/page-not-found-half-way-through-pagination?replies=5

    Changing the admin reading “Blog pages show at most” number to say, 6, the second page pagination works. But then the others fail. Changing it to 1, everything works. 203 search results divided up over 5 pages.

    Do the geniuses and developers who know wordpress bugs and gotchas have any advice?

    edit: Sorry, didn’t meant to separate “geniuses” from “developers”. “Genius developers…” 😀

    Have you tried:

    – deactivating all plugins to see if this resolves the problem. If this works, re-activate the plugins one by one until you find the problematic plugin(s).

    – switching to the default theme to rule out any theme-specific problems.

    resetting the plugins folder by FTP or PhpMyAdmin. Sometimes, an apparently inactive plugin can still cause problems.

    Thread Starter Leo Blanchette

    (@leoclipartillustrationcom)

    Hello! I went down that list, and the problem is the same. Also I’m testing on localhost.

    Switching themes doesn’t change anything due to the fact this is a custom post type unique to the theme that is problematic.

    Also doing a rewrite flush doesn’t help.

    With those things widdled down, I was wondering what other avenues I might try.

    Moderator keesiemeijer

    (@keesiemeijer)

    Do you query the main loop on the template files where the pagination fails? Or do you have multiple loops on it
    http://codex.wordpress.org/Pagination#Troubleshooting_Broken_Pagination

    Can you post the full code of the template file – See the forum rules on how to post code.

    Thread Starter Leo Blanchette

    (@leoclipartillustrationcom)

    Hello, first off a BIG thanks for replying. I don’t think in all of my searching I’ve seen that page you mention. I’ll look into that and see if it addresses the problem, and if not, I’ll be back.

    Thanks again. Didn’t know about that page.

    Thread Starter Leo Blanchette

    (@leoclipartillustrationcom)

    I checked my code and I won’t glut this thread with a ton of info. But I noticed this:

    My custom taxonomy uses an identical loop from an identical source, and it does not get stuck on pagination. But the “?s=” search page gives a not-found on page two when I search “graphic” whereas page 2 on the taxonomy does not crash, but works as expected.

    See the urls:

    http://localhost/page/2?s=graphic&submit=Search&post_type=image
    (no results)

    http://localhost/search-images/graphic/page/2
    (works fine, results)

    As mentioned, only certain tags (or perhaps its different result totals?) give errors. Some paginate fine.

    Thread Starter Leo Blanchette

    (@leoclipartillustrationcom)

    Found a solution. This is wordpress bug which will drive anyone loopy.

    SOLUTION! https://gist.github.com/Vheissu/4063547

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Pagination Fails After Page 2 On Search, But Not on Tag Browsing’ is closed to new replies.