WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Posts per Page (3 posts)

  1. csladdin
    Member
    Posted 3 years ago #

    Under Reading Settings > Blog Pages Show at Most, I would like for each blog page to show ALL the posts from one particular month. Therefore if I post 20 posts in September, it should show all 20 posts on the page but if I only posted 5 posts in August, only 5 should be displayed on the page. Is this possible and how would I have to go about making this work? I understand that it would be a coding thing rather than a plug into the settings field setup. Any help/suggestions would be much appreciated. Thanks in advance!

  2. croakingtoad
    Member
    Posted 3 years ago #

    Yes it is possible but you'll need to write a custom query before your loop for the page(s) where you want this to happen.

    http://codex.wordpress.org/Function_Reference/WP_Query
    http://codex.wordpress.org/The_Loop

  3. csladdin
    Member
    Posted 3 years ago #

    Thanks Marty. Would anybody happen to know how to write this query by any chance? I'm not a coding expert unfortunately! Thanks again!

Topic Closed

This topic has been closed to new replies.

About this Topic