Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

Filter by status

Include status in the search

$meta_query = array(
	'relation' => 'AND',
	array(
		'key'     => 'min_age',
		'value'   => '20',
		'compare' => '>=',
		'type'    => 'NUMERIC',
	),
	array(
		'key'     => 'max_age',
		'value'   => '20',
		'compare' => '<=',
		'type'    => 'NUMERIC',
	),
);