Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

Between dates

$date_query = array(
	array(
		'before'        => '2024-09-27',
		'after'         => '2024-09-19',
		'inclusive'     => true,
	),
);