• My posts cascade from most recent to oldest and I would like to reverse that order. In simple terms I’d love to understand how to do this. Thank you !!!!

Viewing 5 replies - 1 through 5 (of 5 total)
  • In your index.php file, look for this bit of code:

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

    Right before that line, add this code:

    <?php query_posts($query_string . “&order=ASC”) ?>

    Good Luck
    Leslee

    I’m also looking for this.Thanks for your answer.I’ll try out to see if works.^_^

    Not working for me… :/

    When I use this, I get the fallowing error

    “Parse error: syntax error, unexpected ‘=’ in /public_html/blog/wp-content/themes/illuminosity/index.php on line 4”

    I got this to work. There are two problems as I see. Firstly, the information as posted is inside of smart quotes, so change “&order=ASC” to “&order=ASC”.

    If there is any code already above the if(have_post) section, you must insert the query_post info there. On my template, that code was for a header. So, my functioning code is as follows:

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

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Reverse the Post Order’ is closed to new replies.