Hello, I have a metabox fields that are the same fields in some CPT.
Is for that, that I write this:
'post_types' => array( 'local' , 'negocio' ),
But I want use MB Custom table, each table to each CPT, for this reason I write this:
'storage_type' => 'custom_table', // Important
'table' => array( 'locales' , 'negocios' ),
But I think that 'table' not supported the array field.
It's is posible to do this?
Or I have to duplicate the metabox fieds?
$meta_boxes[] = array (
'id' => 'location',
'title' => 'Códigos Post',
'post_types' => array( 'local' , 'negocio' ), //$post_types,
'context' => 'after_title',
'style' => 'seamless',
'priority' => 'high',
'geo' => array(
'types' => array( 'establishment' )
),
'storage_type' => 'custom_table', // Important
'table' => array( 'locales' , 'negocios' ), //'locales', // Your custom table name
'fields' => array(
// Address field.
array(
Thanks.