Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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.

Thanks

share|improve this question
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

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.