Multiple filter by tags

Iโ€™d like to develop tags being multiple filtered.

For example, If there is red, yellow, 2020 in the category, I want the posts with the tags red and 2020 to be sorted and displayed when the user clicks red and 2020.
(However, I want this function to be done on one page.)

What cookbook or reference can I refer to??
Please help. :joy:

These two resources should be helpful:


However, if you want to use โ€œandโ€ instead of โ€œorโ€ for the filtering logic, then you have to adapt the logic.

Showing the filtered results on the same page is just a matter of where the filtering happens.

Instead of using standard form-based filtering, you might want to consider a JavaScript based solution though, for example https://listjs.com/ or

1 Like