- This topic has 4 replies, 2 voices, and was last updated 1 year, 9 months ago by .
-
Topic
-
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.
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- You must be logged in to reply to this topic.