by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
Justin Sternberg
@jtsternberg
the .org plugin is probably the best way to bundle it as it won't include a lot of the dev resources, like the github repo will contain
But composer is a perfectly acceptable way to do it as well.
"issues re slower updates & this discussion" well, the updates on github are not considered "released" so are subject to change. The .org release (or master branch) will contain the latest stable release version. And re: the discussion, that has settled down, and we are good to stay in the repo.
Jeremy Turowetz
@jerturowetz
Thanks for the detailed reply. You, and the rest of the teams attention to detail and quality of contribution to the open source community continues to really impress.
Justin Sternberg
@jtsternberg
Thank you sir.
Ian Barker
@iantbarker
If you read the previous issue that I mentioned, nevermind. I deleted it.
Elroy Fernandes
@hazephase
I want to have radio button options in which the user is able to add in values him/her self
alipixel
@alipixel
hi does cmb2 support nested group
Elroy Fernandes
@hazephase
is it possible to have a group in a group ?
K R Gowri Shankar
@shankartechnik
is it possible to resize images on file upload
Jeremy Turowetz
@jerturowetz
@hazephase to your first question about radio buttons: depending on your use case you might be able to achieve this by using a repeatable group
@shankartechnik I'm pretty sure the cmb2 file type uses the WordPress media uploader. This would mean that WordPress will resize images based on your configuration exactly as it would if you added files to the media library directly.
Elroy Fernandes
@hazephase
@jerturowetz thanks, I wanted to ask you can I have radio button options where the user fills them in ? or can I add variables to the options array ?
Jeremy Turowetz
@jerturowetz
That falls a bit outside the normal use case I'd think. Radio buttons are not natively meant to accept input (beyond "checked"). Dynamically building radio labels & keys to store them in the dB would require building custom functions and validation.
anilshah694
@anilshah694
Hello ,
how to integration CMB2 plugin with our theme folder please can you suggest me .
Jeremy Turowetz
@jerturowetz
@hazephase have you read the readme & the installation instructions ?
Justin Sternberg
@jtsternberg
The Basic Usage doc should have you covered for adding to your theme. https://github.com/CMB2/CMB2/wiki/Basic-Usage
SavvyTech
@nirob110
Hello, anyone there ?
I need a simple favor..
Jeremy Turowetz
@jerturowetz
What’s the question and I’ll see if I can help (just a community member :) )
ieotarohit
@ieotarohit
How to integrate CMB2 with Dokan plugin
?

@anilshah694 Follow the URL:-

https://github.com/CMB2/CMB2/wiki/Basic-Usage

Susant Paudel
@susantp
how to update CMB2 while it is not uploaded as plugins . I included CMB2 library in my theme.
Justin Sternberg
@jtsternberg
@susantp just download the plugin from http://wordpress.org/plugins/cmb2/, then replace the guts of your cmb2 folder with what is in the downloaded zip
Chris Reynolds
@jazzsequence
Or do the same from GitHub. But there's no way to automatically update CMB2, it's a manual thing.
Justin Sternberg
@jtsternberg
(when it's bundled)
Also, if you do it from github, you're going to get a lot of the developer artifacts... e.g. the tests directory, the sass files, etc. Things you won't need.
amit648
@amit648
first i created user metabox for using user post type.. So many field insert this metabox..So get only one fields on register page so how to get that fields and save data that user metabox.
amit648
@amit648
Please answer of my question and any one help or suggest for me..
Justin Sternberg
@jtsternberg
Sorry, it's not clear what you are asking
amit648
@amit648
Simply , i want to get one field of metabox in register form and that field save it that metabox .
Ian Barker
@iantbarker
Anyone know how I can retrieve a specific value from my repeatable field group? Essentially, how do I get a specific value from an array?
Justin Sternberg
@jtsternberg
@iantbarker like a specific value from an specific row, or a specific field from all rows?
Ian Barker
@iantbarker
@jtsternberg Good question... Specific value (first is fine) from the specific row (first is fine)
Justin Sternberg
@jtsternberg
@iantbarker have you seen the docs for it? https://github.com/CMB2/CMB2/wiki/Field-Types#css-field-class-32
Ian Barker
@iantbarker
@jtsternberg I looked through those but didn't see anything but am probably missing something. I know how to loop through and get all the values.
Justin Sternberg
@jtsternberg
@iantbarker using that example in the wiki, something like this:
Ian Barker
@iantbarker
Ohhh... I see it now. That link went to WYSIWYG section for some reason so didn't understand the connection. Now I see. Thanks so much!
Ashiqur Rahman
@ashiq35
How display all the users in a dropdown option
Justin Sternberg
@jtsternberg
You would likely use an example similar to this one, but updating to use the user query methods: https://github.com/CMB2/CMB2/wiki/Adding-your-own-field-types#example-2-posts-or-other-post_type-dropdown-store-post_id
Rich Deane
@QTRichieRich
Hi - has anyone tried to export CMB2 settings to json to then import? I get a type error on the import side, looks like some data is lost through the unserialise > json > serialise...
Justin Sternberg
@jtsternberg
Can’t say I have. Curious, what are you using to do the import/export?
Munkhbayar
@munkhbayaryo

Hello,
I'm using cmb object type as page, purpose for theme option.
'object_types' => array( 'page' ),

But can't display in post loop.
if ( have_posts() ) : while ( have_posts() ) : the_post(); if(get_post_meta( get_the_ID(), 'CUSTOM FIELD', 1 )) { echo "YES!"; } endwhile; endif;

Outside of post loop works ok, anyone please help me.

Jeremy Turowetz
@jerturowetz
Hey gang, just wondering if there's an option for the file type to turn off the preview. Can't find it in the docs.
Justin Sternberg
@jtsternberg
there is no such option
Matthew Aubie
@matthewaubie
Hey everyone -- is there a way to set the metabox attribute based on the user role?
Justin Sternberg
@jtsternberg
I might need you clarify. Which attribute?
Matthew Aubie
@matthewaubie
readonly
I want some metaboxes to be editable by admins, but not editable by authors