WP_Tax_Query Generator October 10, 2018 Public Patrick Coridan Permalink Embed Code Or, embed this snippet using GenerateWP WordPress Plugin. Download Clone years $tax_query = array( array( 'taxonomy' => 'years', 'terms' => '2018', 'field' => 'slug', ), );