WordPress.org

Ready to get started?Download WordPress

Forums

The loop and pagination by date (1 post)

  1. kthakk4
    Member
    Posted 1 year ago #

    I am trying to modify the homepage (specially the_loop and pagination). Instead of showing x number of posts per page, I would like to split posts by the date published.

    Example:

    Say I have 13 posts total on my blog.

    3 posts published on 1/1/2013
    4 posts published on 1/5/2013
    6 posts published on 4/6/2013

    The homepage will show 6 posts from 4/6/2013. The previous post link in pagination on homepage will link to a page that has 4 posts from 1/5/2013. The previous post link on this page would display 3 posts published on 1/1/2013.

    Thanks

Topic Closed

This topic has been closed to new replies.

About this Topic