I have a category that I've set to show just one post. I have about 5 posts in the category. When I view the category post, it has a link at the bottom that says Previous, but when I click Previous, it gives me an error rather than showing me the previous post. Any idea how to fix it so the Previous link takes me to the previous post?
In more detail, here are the steps I've taken:
1. Made category 87 hidden from home page by adding this code above the loop:
<?php $page = (get_query_var('paged')) ? get_query_var('paged') : 1; query_posts("cat=-87&showposts=10&paged=$page"); ?>
2. Created a category template modeled after archives.php and renamed it category-87.
3. Placed the following code just above the loop on the category-87 template.
<?php $page = (get_query_var('paged')) ? get_query_var('paged') : 1; query_posts("cat=87&showposts=1&paged=$page"); ?>
Here's what you see when you go to category-87.
There's just 1 post, so the query_posts code works, but when I click Previous Entries link, it takes me to an error page.
What code do I need to put in there to make the Previous link take me to the preceding post?
(By the way, I tried the Custom Query String plugin but it didn't work at all.)