Where communities thrive

  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
Repo info
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
James Auble
i'm wanting some text input fields to save empty string values to the database in order to hide this fields on the frontend if the user clears a default value and saves it. Being that an empty string clears the record in the DB this is not possible. What's a good way to go about this?
Im having that issue with the lorada theme using the plog in cmb2. (Warning: include_once(): Failed opening '/home/customer/www/garitapr.com/public_html/wp-content/plugins/cmb2/includes/CMB2_Bootstrap_290.php' for inclusion (include_path='.:/usr/local/php73/pear') in /home/customer/www/garitapr.com/public_html/wp-content/plugins/cmb2/includes/helper-functions.php on line 44 )
some now how to fix that
Hi, I'm having an error with the lorada theme.
After activating the theme, I install and activate the cmb2 plugin. But cmb2 does not appear as active in the theme.
1 reply
hello, such a question:
why in the text array when I enter the html code does not work, only the code is displayed.
rezolved this, with htmlspecialchars_decode
just installed lorada theme it relies on cmb2 plugin and cant get it to work anyone had this
Warning: include_once(): Failed opening '/wp-content/plugins/cmb2/includes/CMB2_Bootstrap_290.php' for inclusion (include_path='.::/tmp/') in httpdocs/sitev3/wp-content/plugins/cmb2/includes/helper-functions.php on line 44
@Cariver30 did you ever get a fix for this I have the same issue
Hello everyone, Is there a way to create a button in option page to remove all data from existing cmb2 fields? like demo data that I added
saikat mondal
Hello everyone, For a few days I am trying to show a specific metabox dependent on the page template. I can do it but my problem is when I have selected a page template and hit the update button then the metabox does not show. metabox is showing when I reload the page. Actually, I want when I will hit the update button then the metabox will be shown. please help me.
Note: I use CMB2 for metaboxs.
Shabab Ahmed
Hello everyone, Is there a way to show CMB2 generated metabox on woocommerce product data tab, Here is any image reference here is any image reference code and brief placed in here
cmb2 not installed/activated
I have same issue as you @dubzi76
And @alpalkan
Hello everyone, I was wondering if it's possible to have a required validation field base on another field being populated
I have repeatable image upload field which is working in block editor but not with classic ediot
please help me
I am not seeing any Errors as well
Hi. I'm using the textarea_code field, is there any way to add a "copy to clipboard" button so the authors can easily copy the whole code from the field?
Apartemen123.com dan Jual-Apartemen.com
Hi, how cmb2 save the data in table? Vertical or horizontal?
Omid Ghiaei
Hi good time. I have a question about products filter in shop page :
How I can coding a widget based on cmb2 meta field?
ex: Filtering products by color (based on cmb2 meta)
Internet Rambo
JOOOOOOOO. This page is completly fucked
i have questions
anyone here ?