Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

tax_query

$tax_query = array(
	'relation' => 'AND',
	array(
		'taxonomy'         => '$taxonomy1',
		'terms'            => '$term_slugs1',
		'field'            => 'slug',
	),
	array(
		'taxonomy'         => '$taxonomy2',
		'terms'            => '$term_slugs2',
		'field'            => 'slug',
	),
);