diff --git a/better_exposed_filters.theme b/better_exposed_filters.theme index 61b973f..c529ecc 100644 --- a/better_exposed_filters.theme +++ b/better_exposed_filters.theme @@ -447,6 +447,10 @@ // Go through each filter option and build the appropriate link or plain text foreach ($element['#options'] as $option => $elem) { + if (!empty($element['#hidden_options'][$option])) { + continue; + } + // Check for Taxonomy-based filters if (is_object($elem)) { $slice = array_slice($elem->option, 0, 1, TRUE); @@ -469,6 +473,7 @@ $multiple = !empty($element['#multiple']); foreach ($element_set as $key => $value) { + $element_output = ''; // Custom ID for each link based on the