Get URL parameter not working
-
Hello Tobias,
I need to get a filter parameter to URL, but I want it to display filtered right away when a visitor gets there from that particular URL. I need the original URL to work as before – displaying all the contents.
Example:
– normal url https://uni-foundation.eu/resources/ – displays everything
– filtered https://uni-foundation.eu/resources/?table_filter=docent – filters only results with the term “docent”I installed both row Row Filtering and [Get URL parameter](https://tablepress.org/extensions/shortcode-filter-get-parameter/) extensions
I replaced the shortcode
[table id=1
beginning with[table_filter id=1
.I replaced the line in tablepress-shortcode-filter-get-parameter.php file
$attributes['filter'] = $filter_term;
with
$attributes['datatables_auto_filter'] = $filter_term;
as described here https://www.ads-software.com/support/topic/automatic-filtering-by-url-parameter/But nothing works.
Could you please help?
Thanks!
NataliaThe page I need help with: [log in to see the link]
- The topic ‘Get URL parameter not working’ is closed to new replies.