WordPress.org

Ready to get started?Download WordPress

Forums

changing Posts to Descending order Old to New (3 posts)

  1. asgloki
    Member
    Posted 1 year ago #

    Hello, I am using the Twenty Eleven theme and I want my posts to be list old to new, can anyone tell me how I can do this please.
    I tried using plugins but they dont seem to work.

    Thank you in advance
    Anthony

  2. Timothy Jacobs
    Member
    Posted 1 year ago #

    Check this out. The file you are going to edit is index.php.

    Change this
    <?php if (have_posts()) : ?>
    to

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

    I would recommend the loop buddy plugin if you are having a lot of trouble. It isn't free, but it can be very helpful.

  3. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    Make sure that you are using a child theme for any changes to your theme -- do NOT modify theme files directly - your changes will be lost when WP is updated.

Topic Closed

This topic has been closed to new replies.

About this Topic