My site gathers texts in philosophy. They are categorised using multiple custom taxonomies and fields. I'm want users to be able to filter search and archive results by those taxonomies and fields.
I built a test Search page for it, using all the filters: hidden link (need to click on 'Filters' to see the filters)
The problem is that the dropdown filters - Topics, Traditions and Languages - seem to not work together. If I select a Topic, the search results are filtered by that topic. But when I select both a Topic and a Tradition, the Topic is ignored and things are only filtered by Tradition. Likewise, if a Language filter is selected, Topics and Traditions are ignored. Interestingly, they all do work with the remaining filters (Year, Medium, Difficulty and Use).
Can you help me work out why the Topics, Traditions and Languages don't work together?
PS. The way this should work, is: there should be an AND function between all the separate filters, and an OR function within them, so that if a user selects three Topics, a Tradition and two Difficulties, the results will show entries which are classified under any of those three topics, and the tradition, and either of the two difficulties.
Apologies, these are multiselect filters, not dropdowns.
Hi,
Welcome to Toolset support. The Multi-select fields are connected with OR and not AND in Toolset.
If you want to have them as AND you need to create a custom code.
You can check the steps below to see how to implement such a feature:
https://toolset.com/forums/topic/set-custom-search-to-and-instead-of-or/#post-2155235
Please note: The reply time will be longer than normal due to holidays.
Thanks.
Hi Christopher,
Thanks for looking into this. I followed the link but the supporter there says that his solution didn't work. Then there is a mention that something worked but it's not clear what - perhaps it was discussed in private messages? I'd be most obliged if you could let me know how I can apply this to my specific case.
Best,
Simon
Hi Simon,
I'd appreciate it if you could give me the URL/User/Pass of your WordPress dashboard after you make sure that you have a backup of your website.
It is absolutely important that you give us a guarantee that you have a backup so if something happens you will have a point of restore.
Make sure you set the next reply as private.
I will need to check your scenario and if I fail to find a solution I will need to ask the second tier support.
Just FYI, it might take time as we are not at full capacity during the holiday season.
Thank you for your understanding.