Support Forum ยป User Profile

Forum Replies Created

Viewing 15 posts - 2,536 through 2,550 (of 3,958 total)
  • Author
    Posts
  • in reply to: WooCommerce Prdoucts Image Gallery With Metabox image Fields #7904
    Anh TranAnh Tran
    Keymaster

    Yes, 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 field

    This 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;
    } );
    in reply to: Issue with complex form and columns #7903
    Anh TranAnh Tran
    Keymaster

    Hi,

    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.

    Anh TranAnh Tran
    Keymaster

    Thanks :). We'll try to do this as soon as we can.

    in reply to: need to add custom logo with a image field #7901
    Anh TranAnh Tran
    Keymaster

    Don't worry. We're working on this. It will be available when new version of Meta Box is released ๐Ÿ™‚

    Anh TranAnh Tran
    Keymaster

    Hi, 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
    Anh

    in reply to: submit form with ajax #7883
    Anh TranAnh Tran
    Keymaster

    Hi,

    At the moment, no. I will take a note on this and will do it later. Thanks for your suggestion!

    in reply to: need to add custom logo with a image field #7882
    Anh TranAnh Tran
    Keymaster

    Hi,

    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_image for this purpose. Please wait.

    in reply to: settings pages in front end #7881
    Anh TranAnh Tran
    Keymaster

    Hi,

    Unfortunately, it's not supported at the moment. The Frontend submission works with post submission only.

    in reply to: Metabox AIO Updates #7880
    Anh TranAnh Tran
    Keymaster

    Hi,

    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.

    in reply to: WYSIWYG editor going blank on Group reorder #7879
    Anh TranAnh Tran
    Keymaster

    Thanks a lot for your bug. I will check and fix it asap.

    in reply to: Can I create shortcode? #7878
    Anh TranAnh Tran
    Keymaster

    Hi,

    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.

    in reply to: Overwriting a filter #7877
    Anh TranAnh Tran
    Keymaster

    Hi Thomas,

    I replied you on Github. To edit existing meta boxes, please just follow this instruction.

    in reply to: About Group Items #7876
    Anh TranAnh Tran
    Keymaster

    Ah, 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.

    in reply to: WordPress Theme Review Coding Standards #7875
    Anh TranAnh Tran
    Keymaster

    Hi 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

    in reply to: About Group Items #7846
    Anh TranAnh Tran
    Keymaster

    Hi,

    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

Viewing 15 posts - 2,536 through 2,550 (of 3,958 total)