Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

tp query

$tp_tax_query = array(
	'relation' => 'OR',
	array(
		'taxonomy'         => 'location',
		'field'            => 'term_id',
		'operator'         => 'IN',
		'include_children' => true,
	),
	array(
		'taxonomy'         => 'type',
		'field'            => 'term_id',
		'operator'         => 'IN',
		'include_children' => false,
	),
);