Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

basic tax

$tax_query = array(
	array(
		'taxonomy'         => 'post_tag',
		'terms'            => 'test',
		'field'            => 'name',
	),
);