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!
Hi I am attempting to setup a table using a SQL query to my Wordpress database (it seems that the Wordpress option is limited to only the post table - is that correct?).
The issue I am having is the the field being returned is an array (eg a:3:{i:0;s:8:"February";i:1;s:5:"March";i:2;s:5:"April";})
How can I then have this present the data in a more user friendly manner in my table (eg February, March, April)?
Hi, DantianHealth.
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.
-
1. Yes, when we select to Create a MySQL-query-based table by generating a query to WordPress database,
the structure is based on WPDB post types, custom/meta fields, and taxonomies;
while the other option,
Create a MySQL-query-based table by querying a database is a more generic MySQL query generator,
and it has access to more tables in the entire database, rather than just the said WordPress DB tables.
- Please note: this tool is not an ultimate query generator. It simply constructs a suggestion of a query. We are constantly working to improve it, but SQL is such a complicated and flexible language that full automation for constructing queries is next to impossible.
Consequently, the more complicated the query, the higher is the probability that it will not return exactly what you need. So, you will often need to play around with the resulting query.
Please be advised that writing custom SQL Queries or debugging Queries does not fall under what our support covers.
You can check out this official page of WP codex, for help with writing custom Queries.
2. In regards to making that JSON data more user friendly/readable;
What you would need to do here is to unserialize the JSON data.
This falls under advanced MySQL, and unfortunately, it will not be covered by our support.
You will have to search for solutions, for example, such as this one from Stack Overflow.
We hope that helps.
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