Custom Metaboxes and Fields (CMB) will create metaboxes and forms with custom fields that will blow your mind. This is version 2.0 and has been completely rewritten.
but i'd keep it in its folder and include it from another file
Travis Northcutt
@tnorthcutt
sure
Matthew Gaffen
@Gaffen
Hi, just wanted to flag up the issue I just spotted here as it seemed like a medium-important one; image galleries disappear when changing order of a repeatable field item. Full details here: #187
Justin Sternberg
@jtsternberg
Thank you @Gaffen. Repeatable groups need some overhauling in the next few releases. Right now, they work ok for simpler fields, but the complex fields will need their own JS for when they are in a repeat group. Unfortunately haven't gotten to that point
Matthew Gaffen
@Gaffen
No worries, I don't have a lot of free time but I'll read the contribution guidelines and see if I can't give it a shot myself :)
Justin Sternberg
@jtsternberg
That sounds great, thanks!
cggit
@cggit
hi i am wondering if CMB2 is recommended for production use yet?
Justin Sternberg
@jtsternberg
Certainly. It's used in production on some very high profiles sites already.
cggit
@cggit
cool, i am currently using CMB1 is there any special upgrade path?
thanks for taking the time. I will review and give it a go.
Justin Sternberg
@jtsternberg
sure, good luck
cggit
@cggit
would you recommend against running cmb1 along side cmb2?
Justin Sternberg
@jtsternberg
It can work, but generally, I'd avoid it if possible.
cggit
@cggit
does this chat have a specific use or can people ask whatever cmb2 questions they have?
Justin Sternberg
@jtsternberg
It's pretty open
cggit
@cggit
great resource then. Is the future of CMB2 solid in your opinion? My constant fear in the plugin space is relying on a plugin and having the support and/or development stop.
and this type of plugin is easy to start using everywhere
is there any pro like support options?
Justin Sternberg
@jtsternberg
Well, we use it at WebDevStudios for nearly every project. It's future is pretty solid, for sure. Also, if you're familiar with Pods, it plans on using CMB2 as its backbone as well.
_
Support is community based and happens on the wordpress.org support forums
cggit
@cggit
i like how this plugin stores data and uses WP functions vs how ACF seems to do its own thing which is very risky as its only supported by a lonely developer in Australia
Justin Sternberg
@jtsternberg
Agreed on all points. ;)
cggit
@cggit
do you know of any gotchas or tips to keep in mind when using CMB2 in a multisite?
Justin Sternberg
@jtsternberg
No, shouldn't matter.
cggit
@cggit
good stuff, well im gonna get to work have a great day thx again
austinjreilly
@austinjreilly
I have a pretty straightforward question. Across the documentation, I've seen custom fields being added as an array and using the add_field method. Is one way preferred over the other?
Justin Sternberg
@jtsternberg
@austinjreilly I tried to update all the docs over the weekend. Do you still see examples using the old method? And yes, add_field is recommended.
I know the snippets library needs to be updated as well.
austinjreilly
@austinjreilly
@jtsternberg I've been using this code for a few weeks now, and like I said, I would just see it done different ways in different places in the documentation. I'll standardize and see if that fixes my issue (#257) that you've just addressed there as well.
I've added multiple taxonomy checkbox in one of my custom post type. Now while I try to update the checkboxes the hierarchical taxonomy at the right side also get updated. That's the one thing that should not be done. Please check the screenshot to understand what I'm trying to say. http://nimb.ws/8FuZvm