Skip Navigation

[Assigned] Dropdown filters not working together

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

This topic contains 3 replies, has 1 voice.

Last updated by szymonF 18 hours, 19 minutes ago.

Assisted by: Christopher Amirian.

Author
Posts
#2789605

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.

#2789636

Apologies, these are multiselect filters, not dropdowns.

#2789699

Christopher Amirian
Supporter

Languages: English (English )

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.

#2789753

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

#2789820

Christopher Amirian
Supporter

Languages: English (English )

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.