Home › Toolset Professional Support › [Resolved] hide empty taxonomies from a filter
Problem:
The issue here is that the user wanted to hide the empty terms in their parametric search.
Solution:
How to do this can be seen in the link below.
https://toolset.com/forums/topic/hide-empty-taxonomies-from-a-filter/#post-1132932
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 – 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)
Tagged: Custom search, Views plugin
Related documentation:
This topic contains 4 replies, has 2 voices.
Last updated by ELAN42 6 years, 3 months ago.
Assisted by: Shane.
Tell us what you are trying to do?
hiding empty taxonomies from FILTERS
This inside an ARCHIVE (category archive)
Is there any documentation that you are following?
your video here: hidden link
Is there a similar example that we can see?
hidden link
We can't find the option that you show in the video, when we add the filter.
We already tryed AJAX filtering and the result is the same.
Settings are exactly like: hidden link
where this WORKS
with exception that in archivio.archiviodeigiochi.it we are using non-hierarchical taxonomy,
and in new2.studiogiochi.com we are using a hierarchical taxonomy
Let us know.
Hi Elan,
Thank you for contacting our support forum.
So you're saying that you have created a view that should already not include the non-populated taxonomies in your filter correct?
Cold you send me a screenshot of the settings you've selected on your view ?
Thanks,
Shane
It's the filter that should NOT include empty taxonomies,
but it does.
I attach screenshots.
(selected filter should not exist because it's result is an empty page)
This is the code:
<label>[wpml-string context="wpv-views"]Editore[/wpml-string]</label>
[wpv-control-post-taxonomy taxonomy="pubblicazione-editore" type="select" default_label="Seleziona un editore" url_param="wpv-pubblicazione-editore"]
Hello,
I see the issue.
Adjust your Search settings so they look like the settings in my screenshot.
Specifically the options under "Which options to display in form input"
This should help.
Thanks,
Shane
My issue is resolved now. Thank you!
We now have another problem of multilanguage sorting (in the filters), but it's a different issue.
Bye