WP_Meta_Query Generator June 14, 2017 Public Jordan Schelew Permalink Embed Code Or, embed this snippet using GenerateWP WordPress Plugin. Download Clone Promotion Custom Field $meta_query = array( array( 'key' => 'promotion', 'compare' => 'EXISTS', ), );