Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

tax query

$tax_query = array(
	'relation' => 'AND',
	array(
		'taxonomy'         => 'tax1',
		'terms'            => 'terms1',
		'field'            => 'slug',
	),
	array(
		'taxonomy'         => 'tax2',
		'terms'            => 'term2',
		'field'            => 'slug',
		'operator'         => 'NOT IN',
	),
);