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
I'm not sure how this will work out.. Not sure I want to keep another tab open. But could be a good place to take ongoing issue discussion.
tranhoang1991
@tranhoang1991
hi alll
^^!
Justin Sternberg
@jtsternberg
Hello!
Maciej Kuś
@maciekkus
Hello. Did anyone manage to use CMB2 in custom WP_Widget?
Justin Sternberg
@jtsternberg
Not yet that I know of
Travis Northcutt
@tnorthcutt
@jtsternberg is dropping CMB2 in /mu-plugins no longer recommended?
Justin Sternberg
@jtsternberg
@tnorthcutt technically, there isn't a 'recommended' method at this point. It's pretty much whatever makes the most sense to your project.
Travis Northcutt
@tnorthcutt
gotcha
Justin Sternberg
@jtsternberg
but yes, you can use it there
just fine
Travis Northcutt
@tnorthcutt
cool
Justin Sternberg
@jtsternberg
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?
Justin Sternberg
@jtsternberg
Well, quite a lot has changed. The fields should work the same, but the way to register fields has changed. You'll want to look through the example-functions.php file: https://github.com/WebDevStudios/CMB2/blob/master/example-functions.php
cggit
@cggit
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?