How to use URL parameters for filtering?By Milan Jovanovic on 20/07/18 in

Tables can be filtered with a query string that consists of “wdtColumnFilter[KEY]” value pairs where KEY is a zero-based numerical index of the column you would like to filter or initial column header. For example:

?wdt_column_filter[1]=Asia&wdt_column_filter[country]=Thailand

Values passed from URL will be used as default filter values, therefore “Advanced filtering” option needs to be enabled on table edit page.

If you need to pre-filter the table via global search just open the page adding a key to the URL:

?wdt_search=filtervalue

Where ‘filtervalue’ is the value you would like to insert into the filtering field. This would pre-filter the table via global search.

Was this answer helpful ? Yes No

Comments are closed.

BUT FIRST!

Subscribe to our Newsletter

Be the first to learn about updates and new features. Once you have provided your email address, the download will commence shortly


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