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)