- This topic has 7 replies, 3 voices, and was last updated 7 months ago by .
-
Topic
-
I’m trying to implement visual editor field inside clonable group like this:
<?php $meta_boxes[] = [ 'title' => 'Текстовые триггеры', 'id' => 'text-trigger', //'description' => 'A custom hero content block', 'type' => 'block', 'icon' => 'awards', 'category' => 'tsm', 'context' => 'side', 'render_template' => get_template_directory() . '/gutenberg/text-trigger.php', 'fields' => [ [ 'id' => 'triggers', 'type' => 'group', 'name' => 'Контент', 'clone' => true, 'sort_clone' => true, 'add_button' => '+', 'collapsible' => true, 'group_title' => 'Элемент {#}', 'save_state' => true, 'fields' => [ [ 'id' => 'icon', 'type' => 'single_image', 'name' => 'Иконка', ], [ 'id' => 'text', 'type' => 'wysiwyg', 'name' => 'Текст', 'options' => [ 'media_buttons' => false, 'teeny' => true, 'textarea_rows' => 10, ], ], ] ], ], ];
And that’s what i get (different bugs on load, sorting and adding new):
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- You must be logged in to reply to this topic.