Here’s what I ended up with, and it seems to work.
$upcoming_query = new WP_Query(array(
'post_type' => 'my_event',
'numberposts' => -1,
'posts_per_page' => 1000000,
'meta_query' => array(
'relation' => 'AND',
'start_date_clause' => array(
'key' => 'start_date',
'value' => Carbon::now()->format("Ymd"),
'compare' => '>=',
),
'same_date_sort_clause' => array(
'key' => 'same_date_sort', // higher number is earlier
'compare' => 'EXISTS',
),
),
'orderby' => array(
'start_date_clause' => "DESC",
'same_date_sort_clause' => "ASC"
)
));
The same_date_sort/EXISTS clause doesn’t do anything (they all have that field), but it lets me use same_date_sort_clause/ASC for sorting below.
Ahh, fantastic! WP need to update their docs I see. Thanks!
I’m using media library assistant too. ACF developers, can we get a JavaScript fix for this? Seems like it must be an accidental global variable being overwritten or something.
I wrapped it in a try catch and the image picker came up, so crisis averted for now, but I bet that code was meant to do something important right?
The line in question in the unminified code is filters.refresh();
on line 4527
Same problem here. You can hide them, but you can’t bring them back right?