You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am very satisfied with CMB2. But the “show_on” filter doesn’t work in attaching posts with CMB2. It seems that it’s not included in your add-on.
How can I do to show attaching posts in specific page template ?
Best regards.
The text was updated successfully, but these errors were encountered:
$feed_mb = new_cmb2_box( array(
'id' => 'prefix_my_id',
'title' => __( 'This is my title', 'cmb2' ),
'object_types' => array( 'page' ), // Post type
'context' => 'normal',
'priority' => 'high',
'show_names' => false, // Show field names on the left
'show_on_cb' => 'cmb_only_show_for_my_page',
// Or for OO
//'show_on_cb' => array(__CLASS__, 'cmb_only_show_for_my_page'),
) );
Hi,
I am very satisfied with CMB2. But the “show_on” filter doesn’t work in attaching posts with CMB2. It seems that it’s not included in your add-on.
How can I do to show attaching posts in specific page template ?
Best regards.
The text was updated successfully, but these errors were encountered: