Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

Tax Query 222

this is a tax query

$tax_query = array(
	'relation' => 'AND',
	array(
		'taxonomy'         => 'locations',
		'field'            => 'term_id',
	),
	array(
		'taxonomy'         => 'activity_type',
		'field'            => 'term_id',
	),
);