Sauter la navigation

[Résolu] Select Multiple options of a taxonomy filter

Ce fil est résolu. Voici une description du problème et la solution proposée.

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 Il y a 5 années et 2 mois. 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)

Marqué : ,

Ce sujet contient 2 réponses, a 2 voix.

Dernière mise à jour par andrewD-10 Il y a 5 années et 2 mois.

Assisté par: Luo Yang.

Auteur
Publications
#1392927

Tell us what you are trying to do?

i have a taxnomy filter categories which have two options lien caché 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. lien caché

Here are the insights of the filter query and code.
lien caché
lien caché

#1393101
cat-filter.JPG

Hello,

Thanks for the details, please try to modify the filter in your screenshot:
lien caché

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

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!