Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

Meta query – Montreal Canada

Retrieve only items with from Montreal, Canada.

$meta_query = array(
	'relation' => 'AND',
	array(
		'key'     => 'country',
		'value'   => 'Canada',
		'compare' => '=',
	),
	array(
		'key'     => 'city',
		'value'   => 'Montreal',
		'compare' => '=',
	),
);