Hi, this is my very first post. A few days ago, my WP posts began to misordered.
Have in mind
- Many users have the same issue with different WP versions.
- Many users suggest that was a mysql bug and have recommended to update it. Some users updated the mysql version other users have different mysql version, but the bug persists.
- I tried every possible solution founded on the web, and still nothing.
- I am facing this with the latest WP version: 3.1
- Tried using get_posts & query_posts functions but nothing
- ID at wp_posts table are fine
Playing with theme code, I have noticed the following:
# [OK] Would show fine the order of the posts:
$args = array("posts_per_page" => 2, "cat" =>);
$my_query = new WP_Query( $args );
# [ERROR] But if I EXCLUDE categories, posts would misorder:
$args = array("posts_per_page" => 2, "cat" => -6);
$my_query = new WP_Query( $args );
# [OK] Posts show fine when INCLUDING categories:
$args = array("posts_per_page" => 2, "cat" => 6);
$my_query = new WP_Query( $args );
So, I think it would be a WP bug?...
Any solution for this?
Greetings...!!