Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

custom query for CPT menus

// WP_Query arguments
$args = array(
	'post_type'              => array( 'progetti' ),
	'post_status'            => array( 'publish' ),
	'posts_per_page'         => '5',
	'ignore_sticky_posts'    => false,
	'meta_query'             => array(
		'relation' => 'OR',
		array(
			'key'     => 'fine',
			'compare' => '<',
			'type'    => 'DATE',
		),
	),
);

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