How do I add cascade filters with the Powerful Filters add-on?

Before purchase, you can test all plugin and Add-on features on our sandbox site.

What is cascade filtering with Powerful Filters?

Cascade filtering enables narrowing down the number of options available in each next filter by selecting from a previous one.

What does this addon do and who will find it useful?

Powerful filters is an add-on for wpDataTables which allows you and your site visitors to filter table data in the WordPress Tables frontend with Cascade filters; it also allows you to hide the table before the filter is applied.

Cascade filtering enables narrowing down the number of options available in each next filter by selecting from a previous one. For example, if in the first filter you have a list of continents, in second a list of countries, and in third a list of cities, when you choose a continent, the next 2 filters will only show the countries and cities that belong to this continent. Cascading filters are very useful for large datasets, since finding data becomes much faster and more convenient when the filtering options are narrowed down “on the fly”.

How do I install the Powerful Filters add-on?

How to install the addon?

Installing the Powerful Filters add-on is a quite straightforward process if you have some experience with WordPress plugins. Once you’ve uploaded the plugin using either of the two upload methods, you should see the Powerful Filters add-on in your plugins list.

  • Go to your WordPress admin panel, open the “Plugins” page, then click “Add new”, there choose “upload” and then browse to the ZIP file that you’ve downloaded from CodeCanyon.
  • Go to our store , login with the credentials you received via e-mail when you purchased the plugin, download the plugin and extract the ZIP file that you’ve downloaded. Once you’ve done that open your WordPress installation through FTP, browse to wp-content/plugins, and upload the extracted folder there.

Once you’ve uploaded the plugin using either of these 2 scenarios, you should see the Powerful Filters addon in your plugins list. Just click “activate”, and you’re good to go!

Please note:

  • You need the wpDataTables 2.1+ full version to run the addon! It will not work with earlier versions of the plugin, or with wpDataTables Lite.
  • Predefined filtering values are currently not available for the Cascade Filtering feature.

How do I enable cascade filtering?

How to enable cascading with Powerful Filters?

After activating the Powerful Filters add-on you will notice several new options in the Sorting and Filtering tab on the table configuration page.

To try how the cascade works, enable the Cascade filtering” option and choose either of two available logic types: “From left to right” (dependent filtering), and “Free” (independent filtering).

What is dependent (“From left to right”) filtering?

“Dependent” filtering means that you will only be able to make choices in the filters in order, from left to right. New from version 1.3, there is an available option for dependent filtering called “Hide all filters except first one”.

What is independent (“Free”) filtering?

“Independent” filtering means that there is no filtering order restriction — you can choose values in the filters however you wish.

Powerful Filters: From left to right

*NEW* From version 1.3 it is available new option for “Dependent filtering” call it “Hide all filters except first one”. This means that logic is same as for “From left to right logic”, but instead of disabling filters, they are hidden, so when you choose some value in first filter then second filter will be shown and so on. Isn’t that great? Check out live example below:

Powerful Filters: From left to right; Hide filters

“Independent” filtering means that there is no filtering order restriction, you can choose values in filters however you wish, selection made in each filter will narrow down the options list in all the other filters. Play around with filters in the following table to understand how it works:

Powerful filtering: Free

In an example above you will see filters in a table, but if you want to see your filters in a form above the table you can enable option “Filters in a form” (click here to read more about Advanced Filtering features in core wpDataTables).

How do the ``Hide table`` and ``Search button`` features work?

  1. If your table has the option “Filters in a form” enabled, and the filter is rendered outside of the table, Powerful Filters add-on will add two new options to the filtering tab: Hide Table” and Search button”.
  2. “Hide Table” – this option allows you to hide the table content before some selection is made in the filters. It is a great feature if, for example, you only want to show users data in the table that is based on an input of a particular filter (e.g. only a specific type number, or a single category), without distracting them by showing full table content all the time.
  3. Search button will allow you to add or remove the search button. By default, wpDataTables data is filtered automatically when any filter has been changed; and the Search button is enabled. Filtering won’t be applied “on the fly” – the table will only be filtered when you click the Search button next to the filters.
  4. Once you enable the Search button, you will see one more option – Disable search button. Enabling this option will keep the search button disabled until a user selects options in all available filters. This is useful when you only need to show users a particular row. In this way, you restrict users from applying broader filters.
  5. Search button shown at end of the filters above the table

Play around with the filters in the following table to understand how the “Hide table” and “Search button” features work:

Powerful Filters: Hide Table

The wpDataTables core plugin also provides a comprehensive list of filter types: text, number, number range, date range, datetime range, time range, selectbox, multiselectbox and checkbox. Combinations of these filters, along with the Powerful Filters functionalities, provides real flexibility for configuring the filtering engine for almost any project. You can read more about the Advanced Filtering functionalities here.

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