Can't clone cloneable group and can't view wyswig 'Text'

Support General Can't clone cloneable group and can't view wyswig 'Text'

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #47691
    chillifishchillifish
    Participant

    First of all, can I say I don't link the new All in One. By default it enables all the extensions, half of which I don't need. I've had to turn them all off. I tried the Builder for the first time, but there were too many options, and it's faster just to type the code.

    However, I am now having two issues with metaboxes that I've not had in the past. I have the following to create my fields:

        $meta_boxes[] = [
            'title'      => __( 'Client Types', 'wbng' ),
            'id'         => $prefix .'client_types',
            'post_types' => ['page'],
            'include'    => [
                'template' => ['page-templates/home.php'],
            ],
            'fields'     => [
                [
                    'name'              => __( 'Client Type', 'wbng' ),
                    'id'                => $prefix . 'client_type',
                    'type'              => 'group',
                    'clone'             => true,
                    'sort_clone'        => true,
                    'fields'            => [
                        [
                            'name'              => __( 'Title', 'wbng' ),
                            'id'                => $prefix . 'client_title',
                            'type'              => 'text',
                            'label_description' => __( 'Client type', 'wbng' ),
                        ],
                        [
                            'name'              => __( 'How we can help', 'wbng' ),
                            'id'                => $prefix . 'how_we_can_help',
                            'type'              => 'wysiwyg',
                            'label_description' => __( 'How can we help this type of client?', 'wbng' ),
                        ],
                    ],
                ],
            ],
        ];
    

    However, there are two issues. I can't clone the 'Client Type' group. I also can't view the 'Type' area in the WYSIWYG editor. Anyone got any ideas?

    #47697
    chillifishchillifish
    Participant

    I've figured out the 'Text' issue, I found some code I'd previously written. There should be an options array as below

    
        'options'  => [
             'raw' => true,
        ],
    

    This option is not mentioned in the WordPress docs linked from the Metabox docs.

    I have deleted the AIO plugin and installed the lite plugin, plus just the two extensions I need, but I still cannot duplicate the cloneable group.

    #47698
    chillifishchillifish
    Participant

    The above didn't fix the wysywig 'Text' issue. However, re-installing the plugin from the WordPress repository and only using the plugins I wanted to has worked for both issues.

    Note to devs: There are the above issues with the AIO plugin.

    #47705
    PeterPeter
    Moderator

    Hello,

    Can you please activate the single plugin Meta Box along with Meta Box AIO and rechek the issue?

    #47716
    Alexander GambleAlexander Gamble
    Participant

    I can confirm I'm having the same issue with AIO cloneable groups.

    #47717
    Alexander GambleAlexander Gamble
    Participant

    And to follow up, when you install the individual MB plugin from the WP repository it does fix the issue. Can the code be added to AIO so I can remove the individual plugin again please?

    #47731
    Filippo PonzettiFilippo Ponzetti
    Participant

    I have the same issue! Please fix ASAP!

    Many thanks,
    Filippo

    #47742
    metafanmetafan
    Participant

    I have the same problem with cloning.
    Activating the single plugin Meta Box along with Meta Box AIO works.

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