Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

custom field

$meta_query = array(
	'relation' => 'AND',
	array(
		'key'     => '_flashsale',
		'value'   => 'on',
		'compare' => '=',
	),
);