Meta query – Blue/Red items
Retrieve only blue OR red items.
$meta_query = array( 'relation' => 'OR', array( 'key' => 'color', 'value' => 'blue', 'compare' => '=', ), array( 'key' => 'color', 'value' => 'red', 'compare' => '=', ), );
Retrieve only blue OR red items.
$meta_query = array( 'relation' => 'OR', array( 'key' => 'color', 'value' => 'blue', 'compare' => '=', ), array( 'key' => 'color', 'value' => 'red', 'compare' => '=', ), );