CMB in taxonomy
-
Hello, I have a problem with CMB2 in a taxomony.
Here is the code:
$cmb_demo = new_cmb2_box( array( 'id' => $prefix . 'sp_products_img_metabox', 'title' => __( 'Immagini prodotto', 'cmb2' ), 'object_types' => array( 'prodotto' ), // Post type 'context' => 'side', 'priority' => 'low', 'show_names' => true, // Show field names on the left // 'cmb_styles' => false, // false to disable the CMB stylesheet // 'closed' => true, // true to keep the metabox closed by default ) ); $cmb_demo->add_field( array( 'name' => __( 'Thumbnail/Immagine principale', 'cmb2' ), 'desc' => __( 'Carica l\'immagine principale del prodotto, verrà visualizzata più grande rispetto alle altre scelte sotto.', 'cmb2' ), 'id' => $prefix . 'prod_thumb', 'type' => 'file', ) );I can show image in a taxonomy call “categoria-prodotto”?
The custom post type name is “prodotto”.Someone can help me?
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
The topic ‘CMB in taxonomy’ is closed to new replies.