Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

custom_field

custom_field

$meta_query = array(
	'relation' => 'AND',
	array(
		'key'     => 'preview_image',
	),
);