I just created a new category archive template for one category, and it seems to be working fine apart from one issue: if you click the “older posts” link, it’ll take you back to page three, but clicking it again gets you a 404.
When I was creating this template, I initially did it as a separate file and created a page using that template as a way to test it out. That test works fine – it’ll let you back up all the way to the first page of posts in that category.
What could be different between a page and the category archive that would make it behave differently? And why would it get to the third page just fine but not be able to go any further?
My query_posts call looks like this:
query_posts( array( 'posts_per_page' => 5, 'cat' => '5', 'paged' => get_query_var('paged') ));
Thanks in advance if anyone has any thoughts!
- The topic ‘Category archive won't go back past page 3’ is closed to new replies.