CPT Search Form with Taxonomy filter & Or
I think you can do it in two following steps: In HTML code just add a dropdown with the values you need. <select name=”yourselect”><option value=”1″>Value 1</option> … </select> In your pre_get_posts filter add tax_query parameter like this if( !empty( $_GET[‘yourselect’] ) ) { $query->set(‘tax_query’, array( array( ‘taxonomy’ => ‘YOUR_TAXONOMY_NAME’, ‘field’ => ‘id’, // or slug … Read more