WP_Tax_Query Generator March 16, 2024 Public Antonio Carreira Permalink Embed Code Or, embed this snippet using GenerateWP WordPress Plugin. Download Clone Filter by Category Slug $tax_query = array( array( 'taxonomy' => 'category', 'terms' => 'test', 'field' => 'slug', ), );