WP_Tax_Query Generator July 30, 2023 Public Bas Middelham Permalink Embed Code Or, embed this snippet using GenerateWP WordPress Plugin. Download Clone Product category $tax_query = array( array( 'taxonomy' => 'collection', 'terms' => 'value', 'field' => 'slug', ), );