Forum Replies Created
-
AuthorPosts
-
December 20, 2017 at 12:04 PM in reply to: WooCommerce Prdoucts Image Gallery With Metabox image Fields #7904
Anh Tran
KeymasterYes, it's possible. You need to:
- Register a field with id
_product_image_gallery
- Filter to the value when saving to the database
- Filter to the value when outputting the fieldThis is the sample code. Please try.
add_filter( 'rwmb_meta_boxes', function ( $meta_boxes ) { $meta_boxes[] = [ 'title' => 'Save gallery as CSV', 'post_types' => 'product', 'fields' => [ [ 'type' => 'image_advanced', 'id' => '_product_image_gallery', ], ], ]; return $meta_boxes; } ); add_filter( 'rwmb__product_image_gallery_value', function ( $value ) { $value = implode( ',', $value ); return $value; } ); add_filter( 'rwmb__product_image_gallery_field_meta', function ( $meta ) { if ( is_string( $meta ) ) { $meta = explode( ',', $meta ); } return $meta; } );Anh Tran
KeymasterHi,
Sorry for taking long. While working with this issue, we found that it's harder than we thought. We're trying to fix this. Hopefully early next week we can finish.
Thanks for understanding.
December 20, 2017 at 11:27 AM in reply to: in post field i can see only select, and select advanced field types with Builde #7902Anh Tran
KeymasterThanks :). We'll try to do this as soon as we can.
Anh Tran
KeymasterDon't worry. We're working on this. It will be available when new version of Meta Box is released ๐
December 19, 2017 at 3:08 PM in reply to: in post field i can see only select, and select advanced field types with Builde #7884Anh Tran
KeymasterHi, sorry for this. We're updating the Builder extension. There are some options are added recently. We are also working on improving the code base for it as well. It takes some time. Please wait a little.
Thanks
AnhAnh Tran
KeymasterHi,
At the moment, no. I will take a note on this and will do it later. Thanks for your suggestion!
Anh Tran
KeymasterHi,
I was facing the same issue when working with the custom logo. Currently there's no options for it yet. I will create a new field type
single_imagefor this purpose. Please wait.Anh Tran
KeymasterHi,
Unfortunately, it's not supported at the moment. The Frontend submission works with post submission only.
Anh Tran
KeymasterHi,
Currently, Meta Box AIO is going after the latest releases a little bit. I've just updated it today, so you will receive all the updates immediately.
Regarding the sidebar field, it is added to the free version of Meta Box. You just need to update it from wordpress.org and be able to use it. The Builder extension will be updated later as well.
Anh Tran
KeymasterThanks a lot for your bug. I will check and fix it asap.
Anh Tran
KeymasterHi,
Please correct me if I'm wrong. I understand that you want to use Meta Box like a shortcode generator, so when users click on a "trigger button", it shows a form to enter those info for a button. Then clicking on "Insert" button will inserts a shortcode to the post content?
If that's correct, then I'm afraid to say it's not supported at the moment. The purpose of the shortcode is presenting the data, while the purpose of Meta Box is saving the data. Although they might share the same form, but the goals are different.
Anh Tran
KeymasterHi Thomas,
I replied you on Github. To edit existing meta boxes, please just follow this instruction.
Anh Tran
KeymasterAh, as I explained in the previous reply, the new cloned group will inherit the current state of the last clone. So if the last one is collapsed, users will get a new collapsed one.
Anh Tran
KeymasterHi Thomas,
The code generated by the Online Generator or following our documentation doesn't violate the theme review guidelines. It's safe to be used in the themes.
Anh
Anh Tran
KeymasterHi,
I tried your code and it works to me. Probably we're misunderstanding each other.
The
'default_state' => 'collapsed'makes sure when you create a new post, the group will be collapsed.When you open a group to enter data, its state will be reserved (with
'save_state' => true). When you clone a group, the previous is remained (so if the last clone is expanded, then the new clone is expanded and vice versa).Hope that makes sense.
Best regards,
Anh -
AuthorPosts