Meta query field order together with post_date order causes posts without the meta field to be unordered
Actually, I don’t think you need that mt1.post_id IS NOT NULL DESC sorting, hence you also do not need to use the posts_orderby hook. You can just use the orderby parameter in WP_Query like so: Also note that, in the first meta query clause named/keyed start_date_value, you should set the type arg to DATE (like … Read more