I'd like to send potential clients to my events listing page, but only show them the events of interest to them in their local area. Can I pre-populate the events list "location" or "tags" filters from a URL parameter?
My sincerest apology for all the time taken to research this. We went through any examples we could find, and we don't have our own, but there is one of our users who managed to do something similar.
They installed a couple of different plugins, first a plugin "URL Params" to get a URL parameter.
This example was used on our other plugin, wpDataTables.
Here is what the user told us :
"I installed "URL Params", then nested a shortcode to get the URL param within the shortcode for the wpDatatable like below and it worked.
[wpdatatable id=3 var1="{urlparam param="ID" /}"]
-
After some time, he reported back, saying that he didn't get the perfect results he needed, then he installed another plugin "Insert PHP Code Snippet".
He said : "
Using that plugin, I created a shortcode that look like this:
Hello,
I'd like to send potential clients to my events listing page, but only show them the events of interest to them in their local area. Can I pre-populate the events list "location" or "tags" filters from a URL parameter?
Thanks
M.M.
Hi, Manuel
Thanks for reaching out to us
- To be honest with you, i am not 100% sure if this can be achieved.
I have to check with our senior 2nd level Team and the developers to see if we have a solution for it.
Sorry for the waiting time, and thank you for your patience.
As soon as i confirm it i will come back to the ticket.
Kind Regards,
Miloš Jovanović
[email protected]
Rate my support
Try our FREE mapping plugin! MapSVG - easy Google maps, interactive SVG maps and floor plans, choropleth maps and much more - https://wordpress.org/plugins/mapsvg-lite-interactive-vector-maps/
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables
Hi, Manuel
Apologies for the waiting time, still waiting for confirmation on this.
I will keep checking and will confirm it as soon as possible.
Thank you for your patience.
Kind Regards,
Miloš Jovanović
[email protected]
Rate my support
Try our FREE mapping plugin! MapSVG - easy Google maps, interactive SVG maps and floor plans, choropleth maps and much more - https://wordpress.org/plugins/mapsvg-lite-interactive-vector-maps/
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables
Hi, Manuel
My sincerest apology for all the time taken to research this. We went through any examples we could find, and we don't have our own, but there is one of our users who managed to do something similar.
They installed a couple of different plugins, first a plugin "URL Params" to get a URL parameter.
This example was used on our other plugin, wpDataTables.
Here is what the user told us :
"I installed "URL Params", then nested a shortcode to get the URL param within the shortcode for the wpDatatable like below and it worked.
[wpdatatable id=3 var1="{urlparam param="ID" /}"]
-
After some time, he reported back, saying that he didn't get the perfect results he needed, then he installed another plugin "Insert PHP Code Snippet".
He said : "
Using that plugin, I created a shortcode that look like this:
Shortcode Name: GetReport
<?php echo do_shortcode('[wpdatatable id=4 var1="' . $_GET['ID'] . '"]'); echo do_shortcode('[wpdatatable id=3 var1="' . $_GET['ID'] . '"]'); ?>
Then in my page where the table is generated, I insert the shortcode below to display the tables using the ID param from the URL:
[xyz-ips snippet="GetReport"]
"
-
We can not guarantee that this works for everyone, but we are hoping that their example might help you to get started in the right direction.
Thank you for your patience, and let us know how it goes.
Kind Regards,
Miloš Jovanović
[email protected]
Rate my support
Try our FREE mapping plugin! MapSVG - easy Google maps, interactive SVG maps and floor plans, choropleth maps and much more - https://wordpress.org/plugins/mapsvg-lite-interactive-vector-maps/
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables