Title: Two categories dropdowns
Last modified: August 21, 2016

---

# Two categories dropdowns

 *  Resolved [idjuly4](https://wordpress.org/support/users/idjuly4/)
 * (@idjuly4)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/two-categories-dropdowns/)
 * Hi!
    if i have two categories dropdowns (search, category, category, tag) and
   i select one category in each dropdown, it seems that it works as OR function.
   My goal was to filter post that belong to BOTH categories. is it possible to 
   change that? thx
 * [http://wordpress.org/plugins/search-filter/](http://wordpress.org/plugins/search-filter/)

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

 *  Plugin Author [Ross Morsali](https://wordpress.org/support/users/designsandcode/)
 * (@designsandcode)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/two-categories-dropdowns/#post-4571194)
 * Hey again idjuly 😉
 * The widget was never designed to use the same taxonomy twice is the field list
   so this will not work.
 * If you want the user to be able to select multiple categories you need to try
   another field type, such as checkbox or multiselect 🙂 Then a user can pick as
   many categories as they want.
 * You can even then change the logic so they use AND or OR operators 🙂 Some of
   this is undocumented but here is an example:
 *     ```
       [searchandfilter fields="search,post_tag,category" types=",multiselect,checkbox," operators=",or,and"]
       ```
   
 * 🙂
 *  Thread Starter [idjuly4](https://wordpress.org/support/users/idjuly4/)
 * (@idjuly4)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/two-categories-dropdowns/#post-4571321)
 * DaC- looks good. is there a way to arrange categories in the checkbox in other
   than alphabetical order?
 * thx
    july4
 *  Plugin Author [Ross Morsali](https://wordpress.org/support/users/designsandcode/)
 * (@designsandcode)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/two-categories-dropdowns/#post-4571323)
 * Check the docs – [http://docs.designsandcode.com/search-filter/#options](http://docs.designsandcode.com/search-filter/#options)-
   you have `order_by` and `order_dir` 🙂

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

The topic ‘Two categories dropdowns’ is closed to new replies.

 * ![](https://ps.w.org/search-filter/assets/icon-256x256.png?rev=3096093)
 * [Search & Filter](https://wordpress.org/plugins/search-filter/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/search-filter/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/search-filter/)
 * [Active Topics](https://wordpress.org/support/plugin/search-filter/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/search-filter/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/search-filter/reviews/)

## Tags

 * [categories](https://wordpress.org/support/topic-tag/categories/)

 * 3 replies
 * 2 participants
 * Last reply from: [Ross Morsali](https://wordpress.org/support/users/designsandcode/)
 * Last activity: [12 years, 4 months ago](https://wordpress.org/support/topic/two-categories-dropdowns/#post-4571323)
 * Status: resolved