Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

Past day

$date_query = array(
	array(
		'after'         => '-1 days',
	),
);