As you can see in above screenshot I have given..."Document Type" toggle has terms "studies","surveys", so as per condition you gave above it says if type='document-type' not equal to blank then show toggle..but I have terms for "Document Type" so it should not hide it..
I have put above condition and it hides my toggle..which it should not as it is having terms
So you would like to hide Terms that do not have any posts attached to it, is that correct?
If yes, you can do that using Custom Search Settings >> Show only available options for each input. Without any conditional -- see attached screenshot.
Custom Search Settings >> AJAX results update when visitors change any filter values -- This is my current option selected
I have checkbox filters + count for each term + total results in my page + Infinite scrolling..which changes value based on filter value selection.
So If I apply Custom Search Settings >> Show only available options for each input..It is not working as it is working with my current settings mentioned above.
- Can you please update your search settings as in attached screenshot and then let us know if you still found any issue. The settings that we have in the 4th radio option, is also available in the 5th radio option, as I have shown in my screenshot, please set all these options exactly as I have setup in my attached screenshot.
- Have you applied any custom code using hook or some other way to this View or page?
If above does not solve the issue, please provide temporary access (WP-Admin and FTP Login info) to your site (preferably staging site), so that I can look into your setup and check the issue.
Your next answer will be private which means only you and I have access to it.
=== Please backup your database and website ===
✙ I would additionally need your permission to de-activate and re-activate Plugins and the Theme, and to change configurations on the site. This is also a reason the backup is really important.
✙ Please provide the Page link, View Edit Screen link, Taxonomy backend link as well.
Thanks for sending login. I've added following JS code in View's >> JS editor scectin, for removing empty taxonomy div and now it's working as required: hidden link