Please wait...

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 (2) No (0)

Comments are closed.

Do you have the best

essential plugins installed?
Grab the best 46 plugins. Tested and sorted.

Plugins for SEO, Caching, Security, Design and UX, Stats & analytics, Social sharing. Only the best ones.

By clicking "subscribe" you consent that the information you provide via this form will be securely processed and stored in compliance with EU privacy laws (GDPR).

Thank you for subscribing!

Please check your inbox to download the WordPress goodies.