WordPress.org

Ready to get started?Download WordPress

Forums

Posts - changing order (2 posts)

  1. DanyHokage
    Member
    Posted 4 years ago #

    Hey, anyone know how to change the order of my posts?

  2. MichaelH
    Member
    Posted 4 years ago #

    To resort the order of posts, oldest to newest, using the WordPress Default theme for example, in the wp-content/themes/default/index.php file, just before the line:
    <?php if (have_posts()) : ?>

    put this:

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

    The query_posts() article explains the arguments in detail.

    Also, something like the PostMash or Custom Post Order plugins offer the ability to specify post order.

Topic Closed

This topic has been closed to new replies.

About this Topic