order of categories when querying multiple categories
-
Hello All,
I have posts in two categories that I want to list on a page,
This is what I have:
$args = array( 'post_type' => 'post', 'nopaging = true', 'category_name' => 'vacatures,jobs','nopaging = true'); $the_query = new WP_Query($args);
This works fine. Only thing is that the posts in category “jobs” get listed first, then “vacatures”
I want this the other way around, so the “vacatures” category first.
How could I do this?
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘order of categories when querying multiple categories’ is closed to new replies.