WordPress.org

Ready to get started?Download WordPress

Forums

Arranging Posts on Front Page by Numb er of Days (3 posts)

  1. Badeyes
    Member
    Posted 3 years ago #

    Does anyone know how to arrange posts on the front page by number of days, for example the last 7 days. WordPress only allows you to select the number of Posts but I just want ones from the last 7 days. Perhaps there is a Plugin that does this?

  2. GreggF
    Member
    Posted 3 years ago #

    This might do what you are looking for.

    Posts from Last X Days Plugin for WordPress

  3. alchymyth
    The Sweeper & Moderator
    Posted 3 years ago #

    if you rather want to change some code, look into query_posts() and the time parameter:
    http://codex.wordpress.org/Function_Reference/query_posts
    http://codex.wordpress.org/Function_Reference/query_posts#Time_Parameters

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags