WordPress.org

Support

Support » How-To and Troubleshooting » changing display post order

changing display post order

  • 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

Viewing 1 replies (of 1 total)
  • 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.

Viewing 1 replies (of 1 total)
  • The topic ‘changing display post order’ is closed to new replies.
Skip to toolbar