Skip Navigation

[Resolved] Possible bug in hide_empty="true"

This support ticket is created 3 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 – 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/Karachi (GMT+05:00)

This topic contains 3 replies, has 2 voices.

Last updated by Minesh 2 weeks, 4 days ago.

Assisted by: Waqar.

Author
Posts
#2610151

Hi all,
I have a hierarchical taxonomy called Geo including Regions as parents and their Provinces as children. I have associated Geo to two CPs called Pubs and Studios. In the view filters looping on studios I have used the hide_empty="true" option in order to list only regions or provinces for which at least one post (studio) exists. What happens is that some provinces are listed even though no studios exist in those provinces, with the view obviously returning the "not found" message when that item is selected in the filter. I guess this happens because there are some pubs associated to that province and they are considered "existing items" even though the view is about studios and has nothing to do with pubs. Can this be considered a bug ? the hide_empty="true" option should work on the CP selected in the view only, not considering the others otherwise results are affected.
Or am I using the wrong option ?
Thanks
Regards
Nicola

#2610367

Hi Nicola,

Thank you for contacting us and I'd be happy to assist.

Your observation is correct and this issue is already reported to the concerned team:
https://toolset.com/errata/setting-show-only-filter-options-that-would-produce-results-doesnt-work-correctly-for-taxonomy-filters/

Unfortunately, there is no temporary workaround/fix available for this, but, I've added your voice to this matter internally and will keep you updated through this ticket.

regards,
Waqar

#2610997

Got it. Thank you!

#2874864

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

I've good news for you. The issue you reported with this ticket is been fixed and you can download the latest Toolset Blocks/Views plugins from your account's Downloads page:
=> https://toolset.com/account/downloads/

The new hotfix version for:
(you can visit the changelog to know other fix included with this release):
- Toolset Blocks v1.6.27
=> https://toolset.com/download/toolset-blocks/#changelog

- Toolset Views v3.6.27
=> https://toolset.com/download/toolset-views/#changelog

You can download the latest version and manually replace with your existing Blocks/Views plugin after login to admin using the plugins page.

Please note that:
- if you are using Blocks then Download and install the Blocks plugin.
- If you are using Views then Download and install the Views plugin.