Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

Location Find

$meta_query = array(
	array(
		'key'     => 'location_ref',
		'value'   => 'test',
	),
);