Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

single meta query

$meta_query = array(
	array(
		'key'     => 'status',
		'value'   => 'active',
		'compare' => '=',
	),
);