WP_Meta_Query Generator February 13, 2019 Public thong thong Permalink Embed Code Or, embed this snippet using GenerateWP WordPress Plugin. Download Clone custom field $meta_query = array( 'relation' => 'AND', array( 'key' => '_flashsale', 'value' => 'on', 'compare' => '=', ), );