Skip Navigation

[Resuelto] only show populated filter options in view

Este hilo está resuelto. Aquí tiene una descripción del problema y la solución.

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 hace 5 años, 5 meses. 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.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

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)

This topic contains 2 respuestas, has 2 mensajes.

Last updated by herreV hace 5 años, 5 meses.

Assisted by: Shane.

Autor
Mensajes
#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

Languages: Inglés (English )

Timezone: 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!

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.