Title: Problem with Conditional dropdown values
Last modified: October 24, 2019

---

# Problem with Conditional dropdown values

 *  [nenosw](https://wordpress.org/support/users/nenosw/)
 * (@nenosw)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/problem-with-conditional-dropdown-values/)
 * Hi there
 * I use the plugin for a custom post type (car). On the car archive page I implemented
   the filter for make, model, fuel and transmission. I also enabled the conditional
   dropdown values. The thing is, I would like the dropdown for car make to show
   all car makes at all times in the dropdown, while for the other filters I would
   love to use the conditional dropdown values and hide all the values that are 
   not present.
    This is because when a visitor is looking for Audis and enables
   the filter, there is only Audio shown in the car makes. So if he decides to to
   look for another car make, there is no othen choice but Audi in the dropdown.
   Of course there is a second option “All car makes” in the dropodown as well, 
   when clicking on it the other car makes reappear, but its not intuitive.
 * Is that somehow achievable, to disable the conditional dropdown values for one
   filter only? Thanks for any hints.

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Thread Starter [nenosw](https://wordpress.org/support/users/nenosw/)
 * (@nenosw)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/problem-with-conditional-dropdown-values/#post-12062638)
 * OK. I just found a solution by myself. Its not a great solution, but it works.
   In the function ‘function conditional_terms_ajax_new( el )’ in ‘beatiful-taxonomy-
   filters-public.js’, I added following condition on line 213:
 * if ( taxonomy === ‘make’ ) {return;}
 * Thanks and cheers
 *  Thread Starter [nenosw](https://wordpress.org/support/users/nenosw/)
 * (@nenosw)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/problem-with-conditional-dropdown-values/#post-12062747)
 * I noticed that in this way, the empty car makes are still shown. Any ideas on
   how to avoid that?

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Problem with Conditional dropdown values’ is closed to new replies.

 * ![](https://ps.w.org/beautiful-taxonomy-filters/assets/icon-256x256.png?rev=1654967)
 * [Beautiful taxonomy filters](https://wordpress.org/plugins/beautiful-taxonomy-filters/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/beautiful-taxonomy-filters/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/beautiful-taxonomy-filters/)
 * [Active Topics](https://wordpress.org/support/plugin/beautiful-taxonomy-filters/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/beautiful-taxonomy-filters/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/beautiful-taxonomy-filters/reviews/)

 * 2 replies
 * 1 participant
 * Last reply from: [nenosw](https://wordpress.org/support/users/nenosw/)
 * Last activity: [6 years, 7 months ago](https://wordpress.org/support/topic/problem-with-conditional-dropdown-values/#post-12062747)
 * Status: not resolved