Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

Booking Main Query

// WP_Query arguments
$args = array(
	'post_type'              => array( 'booking' ),
	'post_status'            => array( 'publish' ),
	'date_query'             => array(
		array(
			'before'        => 'dateBefore',
			'after'         => 'dateAfter',
		),
	),
);

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