meta queries do ‘either/or’ checks
meta_query works on ‘both/and’ checks and also ‘either/or’.so don’t worry.your coding was correct.this is the actual format… $a = new WP_Query( array( ‘fields’ => ‘ids’, ‘ignore_sticky_posts’ => true, ‘meta_query’ => array( ‘relation’ => ‘OR’, array( ‘key’ => ‘foo’, ‘value’ => array( ‘foobar’ ), ‘compare’ => ‘IN’ ), array( ‘key’ => ‘bar’, ‘value’ => array( ‘foobar2’ … Read more