Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

date query

$date_query = array(
	array(
		'year'          => 2018,
		'month'         => 1,
	),
);