Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

localfirst-set-local-deal-to-expiration-query

// WP_Query arguments
$args = array (
	'post_type'              => 'local-deals',
	'post_status'            => 'publish',
	'pagination'             => false,
	'posts_per_page'         => '-1',
);

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