Term meta is saved but it doesn't appear in term edit screen later
-
I’ve run into a problem where the metadata is stored but It doesn’t appear in term edit screen later.
$oi_catalog = new_cmb2_box( array( 'id' => $prefix . 'catalog_metabox', 'title' => esc_attr__('Catalog settings'), 'object_types' => array('term'), 'taxonomies' => array('product_category'), 'context' => 'normal', 'priority' => 'high', 'show_names' => true ) ); $oi_catalog_group_id = $oi_catalog->add_field( array( 'id' => '_cmb_catalog_repeat_group', 'type' => 'group', 'options' => array( 'group_title' => __( 'Banner {#}'), 'add_button' => __( 'Add banner'), 'remove_button' => __( 'Remove banner'), 'closed' => false, 'sortable' => false ) ) ); $oi_catalog->add_group_field($oi_catalog_group_id, array( 'name' => 'URL', 'id' => 'url', 'type' => 'text_url' ) );
Am I missing something? I’m running WP 4.5.3, CMB2 2.2.2.1
- The topic ‘Term meta is saved but it doesn't appear in term edit screen later’ is closed to new replies.