WP_Meta_Query Generator July 29, 2019 Public Dhiren Patel Permalink Embed Code Or, embed this snippet using GenerateWP WordPress Plugin. Download Clone Staff Meta $meta_query = array( array( 'key' => 'location', 'value' => 'newyork', 'compare' => '=', 'type' => 'CHAR', ), );