Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

Boletim DLM post query

// WP_Query arguments
$args = array(
	'post_type'              => array( 'dlm_download' ),
	'tax_query'              => array(
		'relation' => 'AND',
		array(
			'taxonomy'         => 'dlm_download_category',
			'terms'            => 'boletim',
		),
	),
);

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

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

// Restore original Post Data
wp_reset_postdata();