Multiple meta value orderby clauses in a WP_Query

This is likely not the “ideal” approach, but this works for me, and now I can move on to other things. If someone has a better option, I’d love to hear it, thank you. $base_args = [ ‘post_type’ => ‘crowdfunding’, ‘numberposts’ => 30, ‘posts_per_page’ => ’50’, ]; $meta_query = array( array( ‘key’ => ‘campaign_start_date’, ‘compare’ … Read more

Check for a value in a custom query

After some serious thinking and some trial and error I came up with this solution. Because all data in the query comes from ACF fields I found a way to use the data from these fields to get the result I was looking for using a For loop: // Get the values from the ACF … Read more