Skip Navigation

[Resolved] hide empty taxonomies from a filter

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

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 support ticket is created 6 years, 3 months 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 – 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 4 replies, has 2 voices.

Last updated by ELAN42 6 years, 3 months ago.

Assisted by: Shane.

Author
Posts
#1132597

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.

#1132813

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

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

#1132835
Screenshot 2018-10-23 18.01.37.png
Screenshot_2018-10-23 ELAN42 studiogiochi Modifica archivio WordPress.png

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"]

#1132932

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Screenshot 2018-10-23 at 10.05.17 AM.png

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

#1133485

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