I´m trying to edit a table with post title and post content.
When I try to edit the content in frontend, the plugin give me the error:
Close Error! There was an error trying to insert a new row! Error: Unknown column 'post_post_content' in 'field list'
I know that would not be possible to edit data at two different sql tables, or joined, but the data of this table is in the same sql table, as shown on the query:
SELECT posts_post.post_title AS post_post_title, posts_post.post_content AS post_post_content FROM wp_posts AS posts_post WHERE 1=1 AND posts_post.post_type = 'post'
Every editable wpDataTable needs to have an ID column for editing:
In manual tables, that's the wdt_ID column, but for database tables, it needs to be a unique integer column (preferably auto-increment).
So, editing two columns is not possible unless you include the ID column, and select it as the ID column for editing in the Editing tab above the table.
Hi!
I´m trying to edit a table with post title and post content.
When I try to edit the content in frontend, the plugin give me the error:
Close Error! There was an error trying to insert a new row! Error: Unknown column 'post_post_content' in 'field list'
I know that would not be possible to edit data at two different sql tables, or joined, but the data of this table is in the same sql table, as shown on the query:
SELECT posts_post.post_title AS post_post_title,
posts_post.post_content AS post_post_content
FROM wp_posts AS posts_post
WHERE 1=1 AND posts_post.post_type = 'post'
So, what is the problem?
Hello Jota
Every editable wpDataTable needs to have an ID column for editing:
In manual tables, that's the wdt_ID column, but for database tables, it needs to be a unique integer column (preferably auto-increment).
So, editing two columns is not possible unless you include the ID column, and select it as the ID column for editing in the Editing tab above the table.
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