WP_Tax_Query Generator August 22, 2019 Public zach mizrahi Permalink Embed Code Or, embed this snippet using GenerateWP WordPress Plugin. Download Clone tax $tax_query = array( array( 'taxonomy' => 'category', 'terms' => '2', 'field' => 'term_id', 'operator' => 'IN', ), );