Custom Fields
Re-Envisioned
Support Meta Box Builder Clone file field in group is not displayed on edit page

  • Creator
    Topic
  • #17970
    Resolved Yumikom
    Participant

    Hi there,

    I created a File Advanced field in a group.
    This Group is Sortable and Cloneable.
    This Field is Sortable, Cloneable and Max number of files = 1.

    Two files have been added in this field and save post.
    However, only one file was displayed in this field.

    The internal data has been saved, but the builder display is incorrect.
    Fixes are not rushed, as they can be avoided in other ways.

    Regards,
    Yumikom

Viewing 3 replies - 1 through 3 (of 3 total)
  • Author
    Replies
  • #17989
    Anh Tran
    Keymaster

    Hi Yumikom,

    Can you share your code of the field group and some screenshots?

    #17994
    Yumikom
    Participant

    Hi Anh,

    The test code is below.

    $meta_boxes[] = array (
        'title' => esc_html__( 'test', 'text-domain' ),
        'id' => 'test',
        'post_types' => array(
            0 => 'post',
        ),
        'context' => 'normal',
        'priority' => 'high',
        'fields' => array(
            array (
                'id' => $prefix . 'group_test',
                'type' => 'group',
                'name' => esc_html__( 'Group', 'text-domain' ),
                'fields' => array(
                    array (
                        'id' => $prefix . 'test1',
                        'type' => 'file_advanced',
                        'name' => esc_html__( 'File Advanced', 'text-domain' ),
                        'max_file_uploads' => 1,
                        'max_status' => false,
                        'clone' => 1,
                        'sort_clone' => 1,
                    ),
                ),
                'clone' => 1,
                'sort_clone' => 1,
                'default_state' => 'expanded',
            ),
        ),
    );
    
    return $meta_boxes;
    

    Thanks and Regards,
    Yumikom

    #17995
    Yumikom
    Participant

    Hi Anh,

    I was able to update the builder plugin to the latest and confirmed it was fine.
    Thank you!

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.

Newsletter

Subscribe to our newsletter to receive news and tutorials for Meta Box and WordPress.


grid gear info copy caret-up caret-down trash