Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

next_unit_available_id

// WP_Query arguments
$args = array(
	'post_type'              => array( 'munit' ),
);

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