Hi,
We have a database table where the data is constantly updated.
What is the format of your current database table? csv? Excel? etc?
How constantly is it being updated? Do you want the WP site to show changes of the table on the site if changes are made in your table? Do you want this done automatically?
Does anyone know of a plugin like https://ww.wp.xz.cn/plugins/tablepress/ that can display data from a database table?
I believe that TablePress can import data from a csv file etc but I am not sure that it can constantly update the table it displays, if that is what you need……
It’s a database table in the MySQL database (same database as the standard WP tables).
The table is updated daily and changes to the data should be shown on the frontend automatically.
Agree about TablePress/CSV. It’s an import function, not a constant update based on the CSV file.
I am not aware of any plugins that do what yu want.
Take a look at this for some ideas
https://ww.wp.xz.cn/support/topic/database-plugin-for-wordpress?replies=23
My first approach (it is also mentioned in the link above) would be to use a template and use wpdb to query the MySQL database.
http://codex.ww.wp.xz.cn/Class_Reference/wpdb
Hope this helps 🙂
Agree, we might need to program it ourselves (although we would prefer not to).
Please comment here if anyone have some ideas/know of some great plugins that we can use.
Hi,
thanks for your question!
TablePress itself can not really help here, as it’s not able to query mySQL tables directly.
Instead, you would have to manually render an HTML table (using PHP) and then apply the DataTables JS library from http://www.datatables.net/ or you check out a solution like the commercial wpDataTables from http://codecanyon.net/item/wpdatatables-responsive-tables-in-wordpress/3958969 (I have no connection to this and never used it, but I though I’d mention it.)
Regards,
Tobias
Thanks Tobias, I’ll look into those two options.
PS: Your TablePress plugin is fantastic!
Hi,
no problem, you are very welcome!
And thanks for the nice words about TablePress!
Best wishes,
Tobias
P.S.: In case you haven’t, please rate TablePress here in the plugin directory. Thanks!