[Resolved] How do you limit posts on category page and allow pagination to work?
I’m creating a template separate from my main website for a single category. This can be viewed here.
However, when I try to limit the number of posts displayed on the category page with
<?php query_posts($query_string . "&posts_per_page=1"); ?>
the pagination stops working. When I go to WEBSITE/page/2/, it says that there is no post.
You can check it out by clicking on “previous posts” on the front page.
When you click on the name of the post, you will be at the single page post. The next_post_link and previous_post_link works fine there and goes to the next or previous post of the same category.
Does anyone know a way to limit the post number without destroying the pagination? Thanks!
- The topic ‘[Resolved] How do you limit posts on category page and allow pagination to work?’ is closed to new replies.