Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

Download query

edit-tags.php?taxonomy=download_categories&post_type=download

// WP_Query arguments
$args = array(
	'post_type'              => array( 'download' ),
	'post_status'            => array( 'publish' ),
	's'                      => 'chiave_di_ricerca',
	'nopaging'               => false,
	'posts_per_page'         => '20',
	'posts_per_archive_page' => '20',
	'order'                  => 'DESC',
	'orderby'                => 'date',
	'tax_query'              => array(
		'relation' => 'AND',
		array(
			'taxonomy'         => 'download_categories',
			'terms'            => 'mastro-5k',
			'field'            => 'slug',
			'operator'         => 'IN',
			'include_children' => true,
		),
	),
);

// The Query
$downloads = new WP_Query( $args );

// The Loop
if ( $downloads->have_posts() ) {
	while ( $downloads->have_posts() ) {
		$downloads->the_post();
		// do something
	}
} else {
	// no posts found
}

// Restore original Post Data
wp_reset_postdata();