Skip Navigation

[Résolu] only show populated filter options in view

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

Problem:

The issue here is that the user has their parametric search but only want the filter options to show up for the items that will always generate a result in the search.

Solution:
What you can do is to enable the settings for this.

This can be found by going to edit our view and under the Custom Search Settings section. See Screenshot

Select the "Show only available options for each input"

This support ticket is created Il y a 6 années. 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.

Aucun de nos assistants n'est disponible aujourd'hui sur le forum Jeu d'outils. Veuillez créer un ticket, et nous nous le traiterons dès notre prochaine connexion. Merci de votre compréhension.

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

Supporter timezone: America/Jamaica (GMT-05:00)

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

Dernière mise à jour par herreV Il y a 6 années.

Assisté par: Shane.

Auteur
Publications
#1141282

Hello,

is it possible to create a view with a filter on taxonomy using checkboxes that only shows taxonomy items that already have been populated.

So what i want to create as a filter is:

[ ] cat1
[ ] cat3
[ ] cat4
[ ] cat5
[ ] cat7
[ ] cat8

In this case cat2 and cat 6 aren't listed as there are no posts linked to that category yet.

I've tried to create a view listing posts and adding a filter, but the filter shows all the taxonomy values, even values that have no post linked to them yet.

#1141512

Shane
Supporter

Les langues: Anglais (English )

Fuseau horaire: America/Jamaica (GMT-05:00)

Screenshot 2018-11-06 at 2.23.21 PM.png

Hi Herre,

Thank you for contacting our support forum.

What you can do is to enable the settings for this.

This can be found by going to edit our view and under the Custom Search Settings section. See Screenshot

Select the "Show only available options for each input"

Please let me know if this helps.

Thanks,
Shane

#1141530

My issue is resolved now. Thank you!