Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

meta-data

$meta_query = array(
	'relation' => 'AND',
	array(
		'key'     => 'data-inicial',
		'value'   => '2020-10-09',
		'compare' => '>=',
		'type'    => 'DATE',
	),
	array(
		'key'     => 'data-final',
		'value'   => '2020-10-10',
		'compare' => '<=',
		'type'    => 'DATE',
	),
);