broken next_posts_link for categories
-
I just upgraded a site to 3.0.4 and the next_posts_link stopped working; it leads to the url where the posts should be, but i get a 404 error instead of the next batch of posts:
http://www.josephvictorine.com/work/commercial/
The next_posts_link still works for the “Still” category, but not for any of the others. The most obvious difference is that the other categories’ templates have multiple loops, while “Still” only has one. I tried adding in a rewind_posts, but it didn’t make a difference.
Here’s my code for the second loop:
[Code moderated as per the Forum Rules. Please use the pastebin]
I am totally, totally stumped, and have a fairly unhappy client. Any help would be greatly appreciated.
-
To clarify, the broken link is “older videos” in the left-hand menu.
Believe me, I read that codex page very carefully before posting the question. But I can’t figure out where my older posts have gone. The links worked until the upgrade.
Okay, I solved this problem, and am reporting back on the assumption that other people will have it, as well. It actually had nothing to do with the presence of multiple loops.
In the admin “Reading” settings, “Blog pages show at most” can not be set to a higher number than your query demands, or the subsequent archive pages disappear. So, some of my categories query 5 posts while others query 15. The admin setting must be set to 5 or lower for these all to work.
This wasn’t the case in previous versions, and I certainly can’t see any value in it, which leads me to believe it’s a bug.
The topic ‘broken next_posts_link for categories’ is closed to new replies.