Where communities thrive

  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
Repo info
Juan Pablo
Hi Guy, Is there a way to limit images in file_list field in admin?
Khaled Fathy
Hi Guys, is nested groups possible with CMB2?
Carlos Herrera
thanks for join this chat
i have a question. is possible change the money format response?.
i need display european money format
Justin Sternberg
@cehojac yes, there's an example for doing that in the wiki: https://github.com/CMB2/CMB2/wiki/Field-Types#text_money
Carlos Herrera
TY @Jtsternberg_twitter !!!
Justin Sternberg
Arya Sutrisna Putra
hi anyone is here ?
I need help to get each group list id , is that possible ?
I need help to incorporate conditional in wordpress
James Auble
When i create parent box for the options-page i get that title as the parent menu item and also as a child
there a way to surpress this coming up twice?
I have a question...
how can I add or use Shamsi calendar during working with cmb2?
My theme developer using this code to call CMB2 meta fields
echo cmb2_get_metabox_form( $metaboxes_form, $post_id, array(
'form_format' => '<form action="' . esc_url(WP_Job_Board_Mixes::get_full_current_url()) . '" class="cmb-form" method="post" id="%1$s" enctype="multipart/form-data" encoding="multipart/form-data"><input type="hidden" name="object_id" value="%2$s">%3$s<input type="submit" name="submit-cmb-profile" value="%4$s" class="button-primary"></form>',
'save_button' => esc_html__( 'Save Profile', 'workup' ),
) );
I am unable to understand, where I can find it, to edit these fields?
Can you please help?
Thank you./
Christophe Rudyj
Hi it's not much of question more than would I need help to make it more DRY https://gist.github.com/kuipou/6ddd8f713a760367c49337387d7a74e4
if someone would like to take stab at it would be awesome
hi hoow can i display pdf files for metabox in frontend
Justin Sternberg
CM2 throwing warnings when changing from version to 2.7.0
Here is one warning
Warning: include_once(/mnt/data/vhosts/casite-1301570.cloudaccess.net/httpdocs/wp-content/plugins/b2i-investor-tools/vendor/cmb2/includes/CMB2_Hookup.php): failed to open stream: No such file or directory in /mnt/data/vhosts/casite-1301570.cloudaccess.net/httpdocs/wp-content/plugins/b2i-investor-tools/vendor/cmb2/includes/helper-functions.php on line 44
This line in version 2.7.0 was not in
if ( 'CMB2_REST' === $class_name || 0 === strpos( $class_name, 'CMB2REST' ) ) {
$path .= '/rest-api';
Justin Sternberg
@Techn0J03 the hookup.php error is this: CMB2/CMB2#1333 Just rename the file on your server from CMB2_hookup.php to CMB2_Hookup.php
thank you for the info.
Meo Huynh
Hello! I'm trying to embed an iframe within a WYSIWYG. It appears once the iframe is added, but when I save and preview, it doesn't show up on the frontend. Once I go into the backend, the iframe also disappears.

$cmb = new_cmb2_box( array(
'id' => $prefix . '09b_metabox',
'title' => __( '09B - WYSIWYG', 'cmb2' ),
'object_types' => array( 'page', ), // Post type
'show_on' => array( 'key' => 'page-template', 'value' => 'templates/uikit.php' ),
'context' => 'advanced',
'priority' => 'high',
'show_names' => true, // Show field names on the left
) );

// Regular text field
$cmb->add_field( array(
'name' => __( '', 'cmb2' ),
'id' => $prefix . '09B_wysiwyg_content',
'type' => 'wysiwyg',
) );

$cmb->add_field( array(
'name' => __( 'Remove padding', 'cmb2' ),
'id' => $prefix . '9B_less_padding',
'type' => 'checkbox',
) );

Jarius John
Hi, I was recently having issues with the newest update crashing my website with a "critical error" and wanted to know if this was an issue that has occurred before and how to fix it?
i have 4+ exp theme customize and theme devlopment any work send me msg
fixed issues and error ping me...
Hi everyone, i looking for method how to bound two group fields, I mean if I add new field to first group this field must be shown in second group, it's realy to make?
Justin Sternberg
@jjohn198_gitlab we'll nee more info. What is the error?
Jarius John
I believe it may have worked out. I was getting a "critical error" when I applied the most recent update but haven't had the issue afterwards.
Dissident Choir

HI. I have setup an admin page and am using CMB2 to store the field information.
I used the code from the snippet library to do this. have done this dozens of times for sites. Usually is the easiest way to create admin controls. Never seen this issue.

I have 2 WYSIWYG fields on this page. All of the fields work and store data, but formatting only saves for the first WYSIWYG on the page.

when I save the admin page it refreshes and the content is still there, but all formatting is stripped from the second box.

Any Ideas?

Hello, I don’t understand how to do this.
I have a field - (Status), which has two values, (For Rent. For Sale)
The question is how can I make it so that when I select one value, for example (rent), the fields related to the sale and on the reverse would not be displayed. Thank you.

$post_type_name = PREFIX . 'inducao';
$singular_label = 'Inducao';
$plural_label = 'Inducoes';
$slug = 'inducao';

$type = new CPT(
'post_type_name' => $post_type_name,
'singular' => $singular_label,
'plural' => $plural_label,
'supports' => array('title', 'thumbnail','multicheck'), // https://codex.wordpress.org/Function_Reference/post_type_supports
'has_archive' => true, // Define se o post type irá ser exibido no frontend do WordPress
'rewrite' => array('slug' => $slug), // Define como a URL do post type
'hierarchical' => true,
'capability_type' => 'page',
'labels' => array(
'all_items' => 'Todos ' . $plural_label,
'add_new' => 'Adicionar novo',
'add_new_item' => 'Adicionar novo ' . $singular_label,
'edit_item' => 'Editar ' . $singular_label,
'new_item' => 'Novo ' . $singular_label,
'view_item' => 'Ver ' . $singular_label,
'search_items' => 'Procurar ' . $singular_label,
'not_found' => 'Nada encontrado',
'not_found_in_trash' => 'Nada encontrado no lixo',
'options' => array(
'check1' => 'Check One',
'check2' => 'Check Two',
'check3' => 'Check Three',

// Icon
"); // https://developer.wordpress.org/resource/dashicons

I'm trying to add the selection field, but this is giving an error. Can you help me?
i'm working on a wordprss template and using CMB2 for metabox.
I want to release my theme in Themeforest Market.
Is there any problem such as licence or ... ?
thanks for helping me
Om Prakash Swami
Hi, is there any meta field for audio/video file uplods?
Jose Martin Mbomio Edu
hey good day
Hi Everyone, I'm struggling with the documentation page as the font is not the right color or size
how can I contact CMB2 team to help fix the font issue?
Justin Sternberg
The best place to view CMB2 docs is on the github wiki: https://gitter.im/WebDevStudios/CMB2