• Resolved faile486

    (@faile486)


    Is there a way to allow front end users to switch between ‘or’ and ‘and’ logic on the front end?

    For example, if I’m filtering memes and I want to find a reaction meme that’s funny, I’d like ‘and’ logic, but if I want to find a meme about cats or dogs, I’d want ‘or’ logic. It would be a pain to have to edit the filter in the back end first, and front end users would just be stuck with whatever I picked.

Viewing 1 replies (of 1 total)
  • Plugin Author stepasyuk

    (@stepasyuk)

    Hello @faile486

    Thank you for using Filter Everything plugin.

    I’m not sure I understood you clear but in general the logic value AND and the value OR are related only for situation when visitors select two or more terms of the same filter.
    For example filter is “Animals” and terms are “Cats”, “Dogs” the logic value determines only how these two terms should be present in memes – both simultaneously (logic AND) or one of them (logic OR).
    But if you use another filter “Reaction” with values “funny”, “to think”, “to cry” you can set for them logic value different from the “Animals” filter.
    Logic between filtes is always AND.

    In other words – within one filter you can not change the logic dynamically, it is impossible. And if you want to have different logic between your filter terms I recommend you to consider to split your terms into two or more groups (taxonomies for example) and to create different filters for these term groups.

    Regards.


Viewing 1 replies (of 1 total)

The topic ‘Logic Swap on Front End’ is closed to new replies.