Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

location parent check

$meta_query = array(
	array(
		'key'     => 'location_parent_check',
		'value'   => 'yes',
		'compare' => '=',
	),
);