Forums › Forums › Search & Filter Pro › Is it possible to use AND over all the controls specified
- This topic has 7 replies, 2 voices, and was last updated 9 years, 11 months ago by Ross.
-
Anonymous(Private) December 20, 2014 at 9:10 pm #9331
Dear Support,
I have 3 groups of tags which I don’t want to show hiërarchical because I want the heading I specify in the search form. I know that within a group of checkboxes you can use operator=”AND”.
I need the same for ALL the controls. To make my point a little more clear:
I have posts (recipes) that have several tags. Like Land, kind of meat (fish, pork, beef) and if there is also a vegetarian way to make the food. My searchform containts a listbox for the Land, one for the kind of meat and last but not least a single checkbox for vegetarian.
If I select Thailand, I got as a result 4 recipes. But if I check vegetarian, than I got 11 results because it seems to select in an OR way.
What must I do to have all the controls together build up to an AND select in that way that every selection narrows down the search?
You can check what I mean on http://vanka.magicservices.nl/recepten (it’s in Dutch, I’m not finished with the English version yet)
Best regards,
Janno Hordijk
MagicServicesRoss Moderator(Private) December 21, 2014 at 1:50 pm #9352If you update to v1.4.0 (released today) – there is an option to use AND or OR between category, tag and taxonomy fields 🙂
Thanks
Anonymous(Private) December 22, 2014 at 9:20 pm #9440Hi Ross, I was able to update the plugin today, yesterday it didn’t mention there was a plugin and therefore I assumed I had to manually download it from your site.
That having solved: I saw the new options. GREAT! Unfortunately the Field Relationship=AND doesn’t work for me. It still does an OR.
What must I do to solve it or is there a little bug in your code?
Best regards, Janno
Ross Moderator(Private) December 23, 2014 at 3:15 pm #9473Hey Janno – I’m wondering if you have another plugin causing a conflict?
Try disabling other plugins – as far as I’m aware this feature is working :/
Thanks
Anonymous(Private) January 5, 2015 at 4:11 pm #9772Dear Ross,
I disabled all plugins except search&filter. But still the same.
I have a field for 3 Countries (tag)
and I have 1 field for vegetarian (tag).Field relationship is set to AND.
If I click Country Thailand I got 4 recipes. If I also check vegetarian than I got 11 recipes. This is an OR and not an AND.
What’s going wrong?
Ross Moderator(Private) January 7, 2015 at 11:09 pm #9917Continued here (sorry for closing): https://support.searchandfilter.com/forums/topic/and-filtering-not-working/
-
AuthorPosts