Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

tax query

$tax_query = array(
	array(
		array(
			'taxonomy'         => 'custom_taxonomy',
			'terms'            => '1',
			'field'            => 'term_id',
		),
	),
	array(
		array(
			'taxonomy'         => 'custom_taxonomy',
			'terms'            => '1',
			'field'            => 'term_id',
		),
	),
);