Sorry, we don't support your browser.  Install a modern browser

Hide empty filter options#580

?

Please add a “Hide empty filter options” toggle that will:

On initial load, hide any filter choices that match zero rows.

After any filter change, refresh the dropdown so it only shows options that still have results.

a year ago

Excellent suggestion, upvoted. I hope this will be implemented along with #421 .

a year ago

Hi, thank you for your suggestion!

If we understood correctly, you would like filter dropdowns to dynamically update after each selection — so that only values with available results remain visible. This functionality is already available through the Powerful Filters add-on, which allows dependent filtering between dropdowns.

However, regarding the “on initial load, hide any filter choices that match zero rows” part — this specific functionality is currently not available.

If we misunderstood your request, please feel free to share a few more details or an example so we can better understand your idea.

https://wpdatatables.com/documentation/addons/powerful-filtering/

a year ago