0

so I am building fairly complex WP site based on WPBakery editor with tons of custom components.

I just found out that some of them need to have multiple textarea_html (WYSIWYG) fields and judging by documentation only one of those fields is allowed per component:

Text area with default WordPress WYSIWYG Editor. Important: only one html textarea is permitted per shortcode and it should have “content” as a param_name

They are defined like this:

            array(
                'type'          => 'textarea_html',
                'heading'       => __( 'This is WYSIWYG editor', 'text-domain' ),
                'param_name'    => 'content',
                'value'         => __( '', 'text-domain' )
            ),

Adding more with the same type (textarea_html) just converts them (of course, per documentation) to basic textarea field like this:

                    array(
                    'type'          => 'textarea',
                    'heading'       => __( 'This is basic textarea block', 'text-domain' ),
                    'param_name'    => 'someparamname',
                    'value'         => __( '', 'text-domain' )
                ),

Any ideas how this could be done differently? Thought about using ACF but didnt had much luck there...

bibiti
  • 1

0 Answers0