You can create a new column in the plugin's table only if you're using the data of existing columns. For example CONCAT two existing columns into a new one, or calculating the time difference using TIMEDIFF to calculate the time difference between two existing columns will work.
However, adding a new column without it existing in the database is not possible. The table is created by linking to existing data in the database, so adding new blank columns is not possible from within the plugin.
Hi,
I'm testing the plugin in your sandbox. I've created a table to lists posts. See screenshot of table created: https://take.ms/qhKRu
It's a table created as a query to the WordPress database.
What if, after creating the table, I want to add a new column? Do I have to create another table? I've not found a way to add a new column.
Thanks.
Hello Daniel.
You can create a new column in the plugin's table only if you're using the data of existing columns. For example CONCAT two existing columns into a new one, or calculating the time difference using TIMEDIFF to calculate the time difference between two existing columns will work.
However, adding a new column without it existing in the database is not possible. The table is created by linking to existing data in the database, so adding new blank columns is not possible from within the plugin.
Kind Regards,
Aleksandar Vuković
[email protected]
Rate my support
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