Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

WP 3.0.2

I've tried adding

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

above

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

in the page.php file, with no result

share|improve this question
add comment

migrated from superuser.com Jan 2 '11 at 10:22

This question came from our site for computer enthusiasts and power users.

3 Answers

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 .)

share|improve this answer
    
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. –  curtismchale Jan 2 '11 at 13:01
add comment

Try combine

orderby=date&order=ASC
share|improve this answer
add comment

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.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.