Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

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' => '=',
	),
);