Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

Meta Fields – Single

$meta_query = array(
	array(
		'key'     => 'key_name',
		'value'   => 'key_value',
		'compare' => '=',
	),
);