Skip Navigation

[Resolved] Select Multiple options of a taxonomy filter

This thread is resolved. Here is a description of the problem and solution.

Problem:

Setup the taxonomy filter with AND logic.

Solution:

Please try to modify the filter as below:
Categories slug in one of those set by the URL parameter wpv-category
eg. http://www.example.com/page/?wpv-category=xxxx

and test again

Relevant Documentation:

This support ticket is created 5 years ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

This topic contains 2 replies, has 2 voices.

Last updated by andrewD-10 5 years ago.

Assisted by: Luo Yang.

Author
Posts
#1392927

Tell us what you are trying to do?

i have a taxnomy filter categories which have two options hidden link and user can select one option for filter. One post can have only one category at a time.

in filter option i want the user able to select either one option at a time or both of the options at one time to see posts which belongs to both categories. it's working fine when one option is selected and submitted for results but When i select both options and submit it to filter then it brings no result but i should bring he post belonging to both opitions. hidden link

Here are the insights of the filter query and code.
hidden link
hidden link

#1393101
cat-filter.JPG

Hello,

Thanks for the details, please try to modify the filter in your screenshot:
hidden link

As below, and test again:
Categories slug in one of those set by the URL parameter wpv-category
eg. hidden link

See screenshot: cat-filter.JPG

More help:
https://toolset.com/documentation/user-guides/filtering-views-by-taxonomy/

#1394955

My issue is resolved now. Thank you!