WordPress.org

Ready to get started?Download WordPress

Forums

changing display post order (2 posts)

  1. aaror
    Member
    Posted 5 years ago #

    I am posting a story as a blog, and having the latest chapter show first is not good for the readers. How do I reverse the post order so people see the first chapter first? I know there is probably an easy fix for this, sorry to bother...
    oops, this is version 2.7, not 2.8, sorry

  2. richarduk
    Member
    Posted 5 years ago #

    Somewhere on your page - presumably your index page - you'll have something like this:

    <?php query_posts('order=DESC&showposts=50&cat=5'); ?>   
    
    <?php if (have_posts()) : ?>    
    
    <?php while (have_posts()) : the_post(); ?>

    The query_posts bit is what you need to look at. Somewhere in there there should be an order=ASC so if you've got order=DESC replace it.

Topic Closed

This topic has been closed to new replies.

About this Topic