WordPress.org

Ready to get started?Download WordPress

Forums

Most recent posts in Ascending order? (1 post)

  1. kevindosi
    Member
    Posted 2 years ago #

    I want my homepage to show the 3 most recent posts in ascending order. The code I have now is:

    <?php query_posts($query_string . "&order=ASC"); $recent_posts = wp_get_recent_posts( $args ); ?>
    <?php while ( have_posts() ) : the_post() ?>

    This makes my homepage show the 3 oldest posts in ascending order, rather than 3 newest posts. Any help would be greatly appreciated.

Topic Closed

This topic has been closed to new replies.

About this Topic