WP_Meta_Query Generator December 21, 2017 Public Raymond Rose Permalink Embed Code Or, embed this snippet using GenerateWP WordPress Plugin. Download Clone Meta Query Brand $meta_query = array( array( 'key' => '_brand', 'value' => '$brand', 'compare' => '=', ), );