Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

tag and cat filter

$tax_query = array(
	'relation' => 'AND',
	array(
		'taxonomy'         => 'category',
		'terms'            => array( '1', '2', '3' ),
		'field'            => 'term_id',
		'operator'         => 'AND',
	),
	array(
		'taxonomy'         => 'post_tag',
		'terms'            => array( '4', ' 5', ' 6' ),
		'field'            => 'term_id',
		'operator'         => 'AND',
	),
);