WordPress.org

Ready to get started?Download WordPress

Forums

Oldest Post First, how? (2 posts)

  1. Tolin
    Member
    Posted 5 years ago #

    I want my oldest post to show up first, and my newest one at the bottom. Any way to do this?

    Thanks in advance.

  2. t31os
    Member
    Posted 5 years ago #

    In your template file, index, single, whichever one you want to apply this to...

    Find this...

    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>

    Add a new line above...

    <?php query_posts('order=asc'); ?>
    or
    <?php query_posts('order=desc'); ?>

    More options here....
    http://codex.wordpress.org/Template_Tags/query_posts#Orderby_Parameters

Topic Closed

This topic has been closed to new replies.

About this Topic