post order no longer working as expected
-
I noticed this change after upgrading to 3.1.2 (now 3.1.3) but I can’t verify that this didn’t happen prior to that.
On my blog page, if I simply let the loop run with no parameters, the sort order is newest-post-first as expected. However if I add the following code to remove a category, the sort order goes to oldest-post-first and changing the order in the code has no effect:
$myPosts = new WP_Query();
$myPosts->query('cat=-51');
if(have_posts()) :while ($myPosts->have_posts()) : $myPosts->the_post();Anyone have any idea what would cause this behavior?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘post order no longer working as expected’ is closed to new replies.