Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

MetaQuery Featured

$meta_query2 = array(
	array(
		'key'     => '_visibility',
		'value'   => 'featured',
		'compare' => '=',
	),
);