Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
Firoz zaman
@Firozzaman19_twitter
CMB2 is not showing any group type fild
Abu Sufian
@asufian97
hi?
Divan van Tonder
@nonadivan
Hi everyone, I'm having an issue with the repeatable groups not sorting correctly and I was wondering if anyone could help me? I'd also like to be able to drag and drop the repeatable groups, I see there's a PR open for this already. Is there anything I can do to help with that?
Justin Sternberg
@jtsternberg
Hmm regarding issue, probably best to open a thread on the support forums: https://wordpress.org/support/plugin/cmb2/
regarding the PR, the best thing you can do is to test test test it!
Divan van Tonder
@nonadivan
I have been doing some more debugging today and I noticed the repeatable fields are in fact being reordered correctly. However if the WYSIWYG fields are set to visual they are not reordered with the rest of the group which causes quite a mix up of content. I have looked around and found an issue somewhat related to this which has been fixed already. I've just updated the plugin version and it's working :D
Hopefully I can find some time to assist with testing the PR
Justin Sternberg
@jtsternberg
Sounds like you may be having issues with the javascript. The wysiwyg fields should work fine when re-ordering.
AdWest
@adwestudio_twitter
Hi. Can I use CMB2 in my free/freemium plugin that will be posted on wordpress.org?
Justin Sternberg
@jtsternberg
@adwestudio_twitter yes, you can.
ashvin
@monparaashvin
$productsettings->add_field( array(
'name' => 'Select Size Guide',
'id' => 'sizeguide_options',
'type' => 'product',
'class' => 'sguide',
'object_types' => array( 'static_block'),
'field_type' => 'taxonomy_select',
'placeholder' => 'Select a Size',
'query_args' => array(
'post_status' => 'publish',
'posts_per_page' => - 1,
),
));
not create filed in product page
Vitor Silva
@Vitor_Silva_gitlab
Hello! Does anybody knows if the documentation shows how the metadata is stored on the database? Im doing an external REST API that connects to the wordpress database and I want to understand how the fields from each metabox that I created are stored. Thanks!
maaz
@kmftn_gitlab
"Metabox configuration is required to have an ID parameter." getting this issue on subdomain in multisite setup. On Main domain cmb2 form works fine.
Does anybody has solution regarding above issue? Thanks in Advance!
@jtsternberg
Justin Sternberg
@jtsternberg
You'll have to provide more information about your setup. Probably best to open a support thread: https://wordpress.org/support/plugin/cmb2/
NicHagane
@NicHagane

hi, i'm having a problem.
i have a wp multisite that is using CMB2. The issue is: sometimes the information on my custom repeatable groups doesn't show information on administration or front page but all the information exits on the database.

someone know somoting about this problem?

emilianonatella
@emilianonatella
Hi, when installing a wp theme, it gives me the following error: "Failed opening required 'vendor / CMB2 / init.php"
I saw that the init.php file in the folder doesn't exist. What should I do? Create an empty file "init.php"?
Gopi chand
@vgopichand09
Hi
Justin Sternberg
@jtsternberg
@NicHagane that sounds like a switch_to_blog error. Where some plugin/theme used that function but didn’t restore the previous blog
@emilianonatella that sounds like an issue with the theme. Did you contact the theme author?
Pawel Dabrowa
@PawelDabrowa
Hi I would like to create admin menu with CMB2 but the snippet on the github it isn’t good
Anyone can send me any link to some resources, thanks.
Itekie
@Itekiedotcom_twitter
Good day , I checking Query monitor and found some errors for CMB2 plugin . Please assist
arslan2419
@arslan2419
Hi Everyone
I need a bit of help regarding cmb2 fields
I'm new in it so i am fetching my custom post type as multiselect field in my page , but i want my admin to sort these custom post types as well.
I have searched on google as there is no field which will help me also multiselect and sort them also
Oscar Castañeda
@ojcastaneda_gitlab
hi everyone, i need help with the info that CMB2 show in the rest api, when the CMB is a field type "file" it only show: "image_id", "image". Can i get in the rest api fields as image's sizes "thumbnail, medium,... ect"?
Justin Sternberg
@Jtsternberg_twitter
@ojcastaneda_gitlab You will need to make a second request to the media endpoint: wp-json/wp/v2/media/<image_id>
Oscar Castañeda
@ojcastaneda_gitlab
@Jtsternberg_twitter thanks
Shahadat Hossain
@sdtHossain
is it possible to create admin theme option with CMB2? Please help
ashvin
@monparaashvin
hi
hello i active plugin repo but not display in pages..
giftGYDE
@giftGYDE_twitter
Hi there, I am trying to create a taxonomy term field group for CPT "recipe" and taxonomy "category", but I can't seem to figure it out. I noticed I have to set 'object_types', but can I set it to have 2 conditions, CPT and taxonomy? Thanks!
ashvin
@monparaashvin

function example_cb() {
$cmb_rest = new_cmb2_box( array(
'id' => 'yourprefix_demo_metabox',
'title' => esc_html__( 'Test Metabox', 'cmb2' ),
'object_types' => array( 'post', 'term' ), // Post type
'taxonomies' => array( 'category' ),
) );

$cmb_rest->add_field( array(
    'name'       => esc_html__( 'Test', 'pluginname' ),
    'id'         => 'test',
    'type'       => 'text',
) );

}
add_action( 'cmb2_admin_init', 'example_cb' );

giftGYDE
@giftGYDE_twitter
Thank you, but that adds the field to all the CPT's that have the taxonomy "category". I only want to add the fields to the "recipe" taxonomy.
Justin Sternberg
@jtsternberg
above, you said you have a CPT "recipe", but now you're saying "recipe" taxonomy. Can you explain more clearly?
to only show on term-edit for "recipe" taxonomy:
function example_cb() {
    $cmb = new_cmb2_box( array(
        'id'           => 'yourprefix_demo_metabox',
        'title'        => esc_html__( 'Test Metabox', 'cmb2' ),
        'object_types' => array( 'term' ), // Post type
        'taxonomies'   => array( 'recipe' ),
    ) );
    $cmb->add_field( array(
        'name'       => esc_html__( 'Test', 'pluginname' ),
        'id'         => 'test',
        'type'       => 'text',
    ) );
}
add_action( 'cmb2_admin_init', 'example_cb' );
Eslam Foula
@efoula
Hello, how to retrieve the attachment sizes/id in response, while using "file_list" - WP Rest API? Thank you!
Sagor Khan
@sagork
Hi, How can I show shortocode on cmb2 Like contact form 7 shortcoe? Can you please help?
9 replies
Juan Pablo
@jupa8712_twitter
Hi Guy, Is there a way to limit images in file_list field in admin?
Khaled Fathy
@kfathy194
Hi Guys, is nested groups possible with CMB2?
Carlos Herrera
@cehojac
Hello
thanks for join this chat
i have a question. is possible change the money format response?.
i need display european money format
Justin Sternberg
@jtsternberg
@cehojac yes, there's an example for doing that in the wiki: https://github.com/CMB2/CMB2/wiki/Field-Types#text_money