How would I go about doing the following:

I need to setup a prev/next type pagination where posts within a category archive are split into months.

For example, if I navigate to the News category, I should get all posts in the News category for this month only. I could then hit the prev link to get all of the posts for last month in the News category.

This can replace the default settings where posts are simply paginated by a specific number of posts per page.

Any help with this would be appreciated.


  • 1
    did you try the automatic archives (/date/yyyy/mm), and setting the query on this template to get all posts numberposts = -1, and placing manual links to the next/previous month? – fischi Nov 23 '12 at 15:45
  • Yes but that displays all posts in every category for the given month. I need a way to only show a specific category. – Ross Cornell Nov 29 '12 at 3:36
  • Okay, so you would have to add the category=$categoryID to your query, $categoryID being the ID of your news category. – fischi Nov 29 '12 at 10:22

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.