Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

ASCII – progetti non conclusi

// WP_Query arguments
$args = array(
	'post_type'              => array( 'portfolio' ),
	'post_status'            => array( 'publish' ),
	'nopaging'               => true,
	'posts_per_page'         => '9999',
	'order'                  => 'DESC',
	'orderby'                => 'date',
	'tax_query'              => array(
		array(
			'taxonomy'         => 'category_portfolio',
			'terms'            => 'concluso',
			'field'            => 'slug',
			'operator'         => 'NOT IN',
		),
	),
);

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

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

// Restore original Post Data
wp_reset_postdata();