WordPress.org

Ready to get started?Download WordPress

Forums

Help me with a query shows today's post only (2 posts)

  1. iraq
    Member
    Posted 7 years ago #

    I need a query showing today's post only, I searched the forum but all the solutions are old entries from previous wordpress versions.

    The codex gave this solution but it's not working:

    <?php $current_month = date('m'); ?>
    <?php $current_year = date('Y'); ?>

    <?php query_posts("cat=22&year=$current_year&monthnum=$current_month&order=ASC"); ?>

    Any idea??

    Thanks in advance

  2. DarkGrave
    Member
    Posted 6 years ago #

    I also need this.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags