Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

Date query – January to May

Items between January to May.

$date_query = array(
	'relation' => 'AND',
	array(
		'month'         => 1,
		'compare'       => '>=',
	),
	array(
		'year'          => 5,
		'compare'       => '<=',
	),
);