AND + OR

Forums › Forums › Search & Filter Pro › AND + OR

Tagged: , ,

Viewing 3 posts – 1 through 3 (of 3 total)
  • Anonymous
    #12471

    Hi!!
    Mine is a restaurant website. All posts are organised into hierarchical categories.
    Users should be able to search into children categories with OR operator, and use AND operator between groups of categories. So for instance,

    Categories:
    –Price
    —-Low
    —-Mid
    —-High
    –Area
    —-Manhattan
    —-Brooklin
    —-Queens

    Search: in Manhattan and low or mid priced restaurant.

    Is this possible with your plugin?
    If no: Is this possible with wordpress?
    If no: Any workaround?

    Ross Moderator
    #12476

    Hey Marc

    Its possible, but you need to change the structure of your categories a little.

    Basically, you do not want to have all those as categories.

    You should create a Custom Taxonomy for Price, and a Custom Taxonomy for area. Then you can add 2 taxonomy fields to you your search form, 1 for each.

    Then in the setting box, under “tags, categories & taxonomies” you would set the relationship as “AND”.

    Then in each field you added, you would set the relationship as “OR”.

    Please read here on a similar post for a user who had to do the same:

    https://support.searchandfilter.com/forums/topic/and-filtering-not-working/#post-9913

    Hope that helps!

    Thanks

    Anonymous
    #12543

    Oh. Thanks a lot for your comments.
    I will try it this way.

Viewing 3 posts – 1 through 3 (of 3 total)
Search & Filter Support
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.

We also use cookies to store items in your cart as well as allowing your to login on the site.

You can adjust all of your cookie settings by navigating the tabs on the left hand side.

By continuing to use this site, you also agree to our Privacy Policy.