Hi there,
I'm trying to configure some meta values for custom taxonomies, but it doesn't work.
I bought the bundle, i installed the plugin, then MB Term Meta add-on.
Here is my code:
add_action( 'init', 'create_corpo_raices_taxonomies' );
function create_corpo_raices_taxonomies() {
register_taxonomy(
'clientes',
'property',
array(
'label' => __( 'Clientes' ),
'public' => true,
'rewrite' => true,
'hierarchical' => true,
'show_ui' => true,
'update_count_callback' => '_update_post_term_count',
)
);
}
add_filter( 'rwmb_meta_boxes', 'corpo_raices_meta_boxes' );
function corpo_raices_meta_boxes( $meta_boxes ) {
$prefix = 'corpo_raices_';
$meta_boxes[] = array(
'title' => __( 'Datos del Cliente' ),
'taxonomies' => 'clientes',
'fields' => array(
array(
'id' => '{$prefix}nombre_cliente',
'name' => __( 'Nombre', 'corporaices' ),
'type' => 'text',
),
),
);
return $meta_boxes;
}
I have more simple metaboxes using the Tab Add-on and Column, but MB Term Meta is not working.
Could you please, help me with this?
PD: I'm running WP 4.5
Thanks,