Our Biggest Sale Is Here
Up to 70% Off
Get the Deal

How to add cascade filters with the Powerful Filters add-on

Say your table lists offices by continent, country and city. With cascade filters, picking Europe in the first filter leaves only European countries in the second filter, and picking a country leaves only its cities in the third. The Powerful Filters add-on adds cascade filtering to wpDataTables, and it can also hide the table until a visitor filters it, or wait for a search button.

Purchase now

Want to try it first? Every feature of the add-on is available on the sandbox site.

What do I need for cascade filters?

You need wpDataTables Premium and the Powerful Filters add-on. The add-on doesn’t work with wpDataTables Lite. The table also needs column filters. To install the add-on:

  1. Download the add-on. Log in to the store with the account you bought it with, and download the Powerful Filters ZIP file.
  2. Upload it. In WordPress, go to Plugins → Add Plugin, click Upload Plugin, click Choose File, choose the ZIP file and click Install Now.
  3. Activate it. Click Activate Plugin. You can check that it’s active on the wpDataTables → Addons page.

How do I turn on cascade filtering?

Open the table in the editor, open the Sorting and filtering tab, turn on Enable cascade filtering under Cascade filtering and choose the logic in Cascade Filtering Logic:

  • From left to right (Dependent): visitors use the filters in order, and each filter narrows the next one. The next filters stay disabled until the previous one has a value.
  • Free (Independent): visitors use the filters in any order, and each choice narrows all other filters.

To show only the first filter at the start, also turn on Hide all filters except the first one under Hide filters. The next filters then stay hidden, instead of disabled, until the previous one has a value.

The Sorting and filtering tab of a wpDataTables table with Show filters in a form, Enable cascade filtering, Hide table before filtering, Show search filters button and Disable until all filters selected turned on, Cascade Filtering Logic set to From left to right (Dependent), and Hide filters turned off
Powerful Filters settings: (1) Filters in a form, (2) Cascade filtering, (3) Cascade Filtering Logic, (4) Hide filters, (5) Hide table, (6) Search button, (7) Disable search button.

Video: cascade filters, where each filter narrows the next one.

Predefined filter values don’t work with cascade filtering.

How do From left to right filters look?

Each filter waits for the one before it. Choose a value in the first filter. The next filter then shows only the values that match it.

Powerful Filters: From left to right

How do filters look with Hide filters on?

Only the first filter shows at the start. Each choice reveals the next filter.

Powerful Filters: From left to right; Hide filters

How do Free filters look?

Use the filters in any order: every choice narrows the other filters. To show the filters in a form above the table instead, turn on Show filters in a form above the table under Filters in a form, as described in advanced filtering.

Powerful filtering: Free

How do I hide the table or add a search button?

When the table shows its filters in a form (Show filters in a form above the table on), Powerful Filters adds two more options:

Option What it does
Hide table: Hide table before filtering Hides the table until a visitor chooses a filter value. Useful when visitors look for one item, such as one product type or category.
Search button: Show search filters button Adds a Search button after the filters. The table filters only when visitors click it, not on every change.
Disable search button: Disable until all filters selected Appears with Search button. Keeps the button disabled until visitors choose a value in every filter, so they always narrow the table down to specific rows.

The table appears only after you filter it. Choose values and click Search.

Powerful Filters: Hide Table

What should I remember about Powerful Filters?

Install the add-on, add column filters, then turn on Enable cascade filtering in the Sorting and filtering tab and choose From left to right (Dependent) or Free (Independent). Hide filters shows only the first filter at the start. With the filters in a form, you can also hide the table until visitors filter and add a Search button. Combine cascade filters with any of the core filter types.

Wait, Before You Download!

To get your hands on wpDataTables Lite, please enter your email address below. We’ll send you a direct download link and keep you updated on existing features along with helpful tips and tricks!

By continuing, I accept Privacy Policy and T&C
Mail Box