• My blog is of a month-long trip to Asia. Now that it’s over, I’d like to reverse the chronology of it so anyone new coming in to read it gets the first installment at the top. Is this possible? Thanks!
    Cheers,
    Ranger

Viewing 4 replies - 1 through 4 (of 4 total)
  • Moderator Samuel Wood (Otto)

    (@otto42)

    WordPress.org Admin

    Put this before your Loop:
    query_posts($query_string . "&order=ASC");

    http://codex.wordpress.org/Template_Tags/query_posts

    Thread Starter ranger6350

    (@ranger6350)

    I read all I could and couldn’t find where to put the code in that you suggested. My index.php file contains the following. Could you tell me where to insert the code snippet you specified in order to make it reverse? I tried several spots with no luck. Thanks!
    -R

    <?php get_header(); ?>
    
    <div id="content" class="narrowcolumn">
    
    <?php if (have_posts()) : ?>
    
    <?php while (have_posts()) : the_post(); ?>
    
    <div class="post" id="post-<?php the_ID(); ?>">
    <h2>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></h2>
    <small><?php the_time('F jS, Y') ?> <!-- by <?php the_author() ?> --></small>
    
    <div class="entry">
    <?php the_content('Read the rest of this entry »'); ?>
    </div>
    
    <p class="postmetadata">Posted in <?php the_category(', ') ?> | <?php edit_post_link('Edit', '', ' | '); ?> <?php comments_popup_link('No Comments »', '1 Comment »', '% Comments »'); ?></p>
    </div>
    
    <?php endwhile; ?>
    
    <div class="navigation">
    <div class="alignleft"><?php next_posts_link('« Previous Entries') ?></div>
    <div class="alignright"><?php previous_posts_link('Next Entries »') ?></div>
    </div>
    
    <?php else : ?>
    
    <h2 class="center">Not Found</h2>
    <p class="center">Sorry, but you are looking for something that isn't here.</p>
    <?php include (TEMPLATEPATH . "/searchform.php"); ?>
    
    <?php endif; ?>
    
    </div>
    
    <?php get_sidebar(); ?>
    
    <?php get_footer(); ?>

    Moderator Samuel Wood (Otto)

    (@otto42)

    WordPress.org Admin

    Just below the get_header. Surround the code with the php tags as well.

    Thanks so much. This really helped me out too!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Want to Reverse Chronology of Blog’ is closed to new replies.