Hi
I am using a custom table for 'products' and this links to a post type of 'products' all working ok but i want the post title to also be cloned to the custom table as a field e.g. product name. This is so for most queries i do inside my plugin i want to call the product custom table directly and dont need to call post data with it. So keeping my queries cleaner.
So all im asking is it possible to pass in the id of 'post-title' as 'product_name? i could make 'product_name' as a hidden field. Or is it possible to pass more than one database column into post-title?
'fields' => [
[
'type' => 'text',
'name' => 'Title',
'id' => 'post_title',
'class' => 'dc-post-title',
'limit' => 50, //default character length
'required' => true,
//'save_field' => false,
],
[
'type' => 'text',
'name' => 'Name',
'id' => 'product_name', <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
'class' => 'dc-product-name',
'required' => false,
],
]