WP 3.0.2

I've tried adding

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


  <?php if(have_posts()) : ?>

in the page.php file, with no result

3 Answers 3


Maybe page.php is not your friend for this one.
It depends where is the list of posts you want to modify.
Try index.php for homepage or archive.php for category based views.

Check http://codex.wordpress.org/Theme_Development#Template_Files_List

page.php is used when an individual Page is queried - that means this page is usually the only post displayed there. Playing with its order gets boring after while .)

  • It is unlikely that page.php is what you want. If it's the main page that your blog is viewed from then it's likely index.php if it's the archive pages then you're looking for archive.php. Jan 2, 2011 at 13:01

Try combine


I just had this problem. You can see my thread here: Wordpress Posts Out Of Order after 3.1 Update

The problem is a bug in MySQL. You need to upgrade to 5.1

5.0.51a is causing the bug.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.