WordPress.org

Ready to get started?Download WordPress

Forums

Display Post in Chronological Order? (4 posts)

  1. jf80
    Member
    Posted 5 years ago #

    Is there a way to display all posts in the order of oldest first, newest last?

    Thanks.

  2. MichaelH
    Member
    Posted 5 years ago #

    For example, using the WordPress Default theme, in the wp-content/themes/default/index.php file, you would add this line:

    <?php query_posts($query_string . '&order=ASC'); ?>

    just before this line:

    <?php if (have_posts()) : ?>

    Related:
    Stepping Into Template Tags
    Stepping Into Templates
    Template Hierarchy

  3. ardee00
    Member
    Posted 5 years ago #

    What if want the posts to remain in the "normal" order but have only the ARCHIVES be forward-chronological?

  4. mkmcgee
    Member
    Posted 4 years ago #

    I want to know this too, putting archives in forward-chronological. Anyone out there that can help?

Topic Closed

This topic has been closed to new replies.

About this Topic