Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

meta_query

$meta_query = array(
	'relation' => 'AND',
	array(
		'key'     => 'wpcasama_max_price',
		'value'   => '$price',
		'compare' => '<=',
		'type'    => 'NUMERIC',
	),
	array(
		'key'     => 'wpcasama_min_price',
		'value'   => '$price',
		'compare' => '>=',
		'type'    => 'NUMERIC',
	),
);