Can't clone cloneable group and can't view wyswig 'Text'
- This topic has 7 replies, 5 voices, and was last updated 1 month, 2 weeks ago by
metafan.
-
AuthorPosts
-
February 19, 2025 at 11:46 PM #47691
chillifish
ParticipantFirst 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?
February 20, 2025 at 7:34 PM #47697chillifish
ParticipantI'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.
February 20, 2025 at 7:57 PM #47698chillifish
ParticipantThe 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.
February 20, 2025 at 9:48 PM #47705Peter
ModeratorHello,
Can you please activate the single plugin Meta Box along with Meta Box AIO and rechek the issue?
February 22, 2025 at 4:05 PM #47716Alexander Gamble
ParticipantI can confirm I'm having the same issue with AIO cloneable groups.
February 22, 2025 at 4:09 PM #47717Alexander Gamble
ParticipantAnd 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?
February 24, 2025 at 11:25 PM #47731Filippo Ponzetti
ParticipantI have the same issue! Please fix ASAP!
Many thanks,
FilippoFebruary 26, 2025 at 4:34 AM #47742metafan
ParticipantI have the same problem with cloning.
Activating the single plugin Meta Box along with Meta Box AIO works. -
AuthorPosts
- You must be logged in to reply to this topic.