Terms selected in wrong (multiple) taxonomy dropdowns
-
It looks like you’re checking the full query string in class-beautiful-taxonomy-filters-walker.php to determine whether a given term is selected which works fine unless you have the same term in two or more taxonomies.
(around line 113)
if ( in_array( $category->slug, $queryvars, true ) ) {
$output .= ‘ selected=”selected” ‘;
}It means if I have custom taxonomies of Foreground colour and Background colour, both with white, and I filter Foreground colour on white, both Foreground Colour *and Background Colour end up having white selected. It needs to check the taxonomy name somewhere in this function – not just all $queryvars for the existence of the term.
If there’s an easy fix it would great to know about
The topic ‘Terms selected in wrong (multiple) taxonomy dropdowns’ is closed to new replies.