diff --git a/inc/filter.class.php b/inc/filter.class.php index 3da6fe8..3978abd 100644 --- a/inc/filter.class.php +++ b/inc/filter.class.php @@ -36,7 +36,9 @@ public function get_markup() { $walker = new WCMF_walker; foreach ( $this->taxonomies as $tax ) - { + { + $fullTax = get_taxonomy( $tax ); + $qString = isset($fullTax->query_var) ? $fullTax->query_var : $tax; wp_dropdown_categories( array( 'taxonomy' => $tax ,'hide_if_empty' => true @@ -47,10 +49,10 @@ public function get_markup() ,'hierarchical' => is_taxonomy_hierarchical( $tax ) ,'show_count' => true ,'orderby' => 'name' - ,'selected' => '0' !== get_query_var( $tax ) - ? get_query_var( $tax ) + ,'selected' => '0' !== get_query_var( $qString ) + ? get_query_var( $qString ) : false - ,'name' => $tax + ,'name' => $qString ,'id' => $tax ,'walker' => $walker ) );