Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

dealer-n-status

$meta_query = array(
	'relation' => 'AND',
	array(
		'key'     => 'assigned_dealer',
		'value'   => '1',
		'compare' => '=',
	),
	array(
		'key'     => 'status',
		'value'   => 'Sold',
		'compare' => '=',
	),
);