WP_Tax_Query Generator July 17, 2017 Public Evgeniy Kozachenko Permalink Embed Code Or, embed this snippet using GenerateWP WordPress Plugin. Download Clone product_cat $tax_query = array( array( 'taxonomy' => 'product_cat', 'terms' => '22', 'field' => 'term_id', ), );