I have a query, ordered correctly by the meta_key in ascending order, but they are devided into groups of their category. This example shows the postorder in the WP category editor:
Cat 6
- sub 1
- - post 49
- - post 9
- sub 2
- - post 11
- - post 51
- sub 3
- - post 30
- - post 1
My ordered list looks like this at the moment :(
Cat 6
- - post 9
- - post 49
- - post 11
- - post 51
- - post 1
- - post 30
It sorts the posts in each category correctly but it divides the list into groups of the categorys
What I want is this: :)
Cat 6
- - post 1
- - post 9
- - post 11
- - post 30
- - post 49
- - post 51
All posts from all categories should be in the the same order, no matter in which subcategory the are.
That is my code in the query:
$wp_query->query('ignore_sticky_posts=1&posts_per_page=-1&orderby=meta_value_num&meta_key=date_start&orderby=ASC' );
What else can I do to fix it?
Your help is much appreciated. Thank you!