Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

Query Offerte

// WP_Query arguments
$args = array(
	'post_type'              => array( 'offerte' ),
	'post_status'            => array( 'publish' ),
	'nopaging'               => true,
	'order'                  => 'DESC',
	'tax_query'              => array(
		array(
			'taxonomy'         => 'tipoofferta',
			'terms'            => 'in-corso',
			'field'            => 'slug',
		),
	),
);

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

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

// Restore original Post Data
wp_reset_postdata();