I am trying to: put a taxonomy search filter on an archive page. I have turned on "Show only filter options that would produce results" so the search filter should only show categories that would produce results (no empty categories should be shown). But, it is showing all categories, regardless of whether they are empty or not.
Link to a page where the issue can be seen: hidden link (Format is currently set to %%NAME%% and "Show only filter options that would produce results" is turned on.)
However, if I add %%COUNT%% to the search filter's Format, then it works as intended, showing only categories with results. Is this a bug? I would expect it to work the same regardless of what's included in the Format.
Hi Jesse,
Thank you for contacting us and I'd be happy to assist.
The issue with this option ( "Show only filter options that would produce results" ) was recently discovered and is already reported to the concerned team.
This is currently being investigated and I'll keep you updated with the progress through this ticket.
regards,
Waqar
Glad to hear it. I will add %%COUNT%% for a workaround until this is fixed. Thank you!
Hi Jesse,
I have an update to share and a fix for this is planned to be covered in the next major release of Toolset Views and Blocks plugins.
I'll let you know once it releases.
regards,
Waqar
Hi Jesse,
I'd like to update that a fix for this issue has been included in the releases of Toolset Views (3.1.0) and Blocks (1.1.0) plugins.
You're welcome to update and let us know, in case the issue still persists.
regards,
Waqar
Regarding the issue – "Show only filter options with results" only works if %%COUNT%% is included – I have updated to the latest version of Types and Blocks, but this issue persists. I also continue to have the related issue as reported in my other support ticket "Custom search filter checkboxes don't show hierarchy" (https://toolset.com/forums/topic/custom-search-filter-checkboxes-dont-show-hierarchy/) – I will add a comment there as well.
Hi Jesse,
Thank you for waiting, while I performed some further tests.
I tested the "Show only filter options with results" options on a couple of different test websites, but can no longer reproduce this with the latest releases.
If you're still experiencing this, can you please share temporary admin login details along with the link to the specific page with the view or WordPress archive?
Note: I've set your next reply as private.
regards,
Waqar
It is working correctly now! Not sure why it wasn't working last time I tried. You can close this ticket. Thanks for your help.