WP_Meta_Query Generator April 11, 2019 Public Ben Blankley Permalink Embed Code Or, embed this snippet using GenerateWP WordPress Plugin. Download Clone usercountrymeta $meta_query = array( 'relation' => 'AND', array( 'key' => 'country', 'value' => '$country', 'compare' => '=', ), );