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.