Why is my nested ‘OR’ meta_query not working?

Just a couple of minor formatting changes: an extra nested array that can be deleted, and the incorrect ‘value’ when using the ‘=’ compare operator, and an unnecessary ‘relation’ parameter. $args[‘meta_query’] = array( // array( <- an extra array you don’t need ‘relation’ => ‘OR’, array( ‘relation’ => ‘AND’, array( ‘key’ => ‘dummy’, ‘value’ => … Read more