I have the following WP_Query:
$custom_query_args = array( 'post_type' => 'mcg_event', 'posts_per_page' => -1, 'meta_query' => array( 'relation' => 'AND', array( 'key' => 'event_status', 'value' => 'archived', ), array( 'key' => 'event_start_date', 'orderby' => 'meta_value_num', 'order' => 'ASC', ) ), );
I'm looking to do 2 things:
- only fetch events that have an event_status of
- order the results by
I can do either of these queries separately with no problem but when I put them together as above the order makes no difference.
What am I missing?