WP_Tax_Query Generator May 25, 2017 Public Sarai Bartels Permalink Embed Code Or, embed this snippet using GenerateWP WordPress Plugin. Download Clone Term Query $tax_query = array( array( 'taxonomy' => 'category', 'terms' => '$terms', 'field' => 'slug', ), );