Hey everyone!
With the Labour Day holidays coming up, we’d like to let you know about our upcoming working hours:
Thursday, May 1st: Our team will be off during Labour Day.
Friday, May 2nd: We'll also be off for an extended holiday break.
We’ll be back on Monday, May 5th, ready to respond to all messages received during this time.
In the meantime, if you need help, feel free to:
-
Use the support widget on the bottom right of our websites (Amelia and wpDataTables) — our AI-powered assistant is available 24/7 and can help with many common questions.
-
Visit our documentation, articles, or YouTube channels for quick answers and step-by-step guides.
https://www.youtube.com/@AmeliaWordPressBookingPlugin/videos
https://www.youtube.com/@wpDataTables/videos
Thank you for being so understanding, and we hope you enjoy the long weekend!
So I know you can display db data based on an sql query, but is there a way to make this query different depending on what user views it?
For example, say I have a table set up for shop items. If a user of shop1 views the page the sql query should be for the table shop1 but if user of shop2 views it it should be different items?
Hello,
Firstly, I would like to sincerely apologize for the delayed response as we have been experiencing an unusually high number of tickets. I am sorry that it has taken longer than usual to respond to your concern and your patience is highly appreciated.
-
Sorry to disappoint you, we do not have any built-in way to achieve what you described.
At the Back-End of the Table, you need to have a working Query in order for our Plugin to initially generate the Table.
But i will share a custom workaround idea, so if you have coding skills you could try a custom solution.
This is how you can make a dynamic SQL Query for the Front-End, which can change the Query according to a variable sent from an API or PHP.
You can use this hook wpdatatables_filter_formdata_before_save
I hope that will help you.
Just wanted to point, these are custom solutions, which are not included as part of our support. Even though we always give extra effort to give examples, if we have any for certain situations.
Please note that using hooks requires certain level of programming skills and included support refers only to advice.
Thank you.
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