WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Ordering of Posts (3 posts)

  1. sgluskin
    Member
    Posted 9 years ago #

    Fellow WordPress bloggers,

    The blog I'm working on will launch with several articles. While the blog is new, I'd like the sort order of the posts to be oldest to newest.

    How do I change the default which is newest to oldest?

    Thanks for the help,

    Shai

  2. Kafkaesqui

    Posted 9 years ago #

    Couple (of the easier) ways to do this:

    1. Add this line to your wp-config.php:

    $order = 'ASC';

    2. Just before The Loop in your active theme's index.php, insert:

    <?php query_posts('order=ASC'); ?>

  3. sgluskin
    Member
    Posted 9 years ago #

    Kafkaesqui,

    Thank you.

    I used method your method 1 and it worked.

    Shai

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags