WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Please Help! Show Only all Posts within Last Week (3 posts)

  1. Allimaple
    Member
    Posted 5 years ago #

    Hello,

    I am trying to display only posts (regardless of how many) made within a week or 7 days. The code used is

    <?php $recent = new WP_Query(showposts=19&hour=168); ?>

    We are using WordPress 2.6.2

    Any help will be greatly appreciated.

    Alli

  2. MichaelH
    Member
    Posted 5 years ago #

  3. Allimaple
    Member
    Posted 5 years ago #

    Thank you, thank you, thank you, very much appreciated.

Topic Closed

This topic has been closed to new replies.

About this Topic