Title: monkeybit's Replies | WordPress.org

---

# monkeybit

  [  ](https://wordpress.org/support/users/monkeybit/)

 *   [Profile](https://wordpress.org/support/users/monkeybit/)
 *   [Topics Started](https://wordpress.org/support/users/monkeybit/topics/)
 *   [Replies Created](https://wordpress.org/support/users/monkeybit/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/monkeybit/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/monkeybit/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/monkeybit/engagements/)
 *   [Favorites](https://wordpress.org/support/users/monkeybit/favorites/)

 Search replies:

## Forum Replies Created

Viewing 1 replies (of 1 total)

 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Sort order of blog posts – can it be changed ?](https://wordpress.org/support/topic/sort-order-of-blog-posts-can-it-be-changed/)
 *  [monkeybit](https://wordpress.org/support/users/monkeybit/)
 * (@monkeybit)
 * [19 years, 6 months ago](https://wordpress.org/support/topic/sort-order-of-blog-posts-can-it-be-changed/#post-197704)
 * Here is the solution in case you haven’t found it yet:
 * Replace this (The start of the loop):
    <?php if ( have_posts() ) : while ( have_posts()):
   the_post(); ?>
 * With this:
 * <?php
    // we add this, to show all posts in our // sorted by ascending dates 
   $posts = query_posts($query_string . ‘&orderby=date&order=asc&posts_per_page=-
   1’);
 * if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>

Viewing 1 replies (of 1 total)