• vc_map( array(
      'name' => __( 'myname Article Content', 'myname' ),
      'base' => 'myname-article-content', //my shortcode name
      'class' => '',
      'icon' => 'icon-wpb-vc_carousel',
      'category' => __( 'Content', 'myname' ),
      'description' => __( 'Content for Article', 'myname' ),
      'params' => array(
        array(
          'type' => 'textfield',
          'heading' => __( 'Image Caption', 'myname' ),
          'param_name' => 'caption',
          'description' => __( 'Enter text which will be used as Image    Caption.', 'myname' )
          ),
        array(
          'type' => 'textfield',
          'heading' => __( 'Image credits', 'myname' ),
          'param_name' => 'credits',
          'description' => __( 'Enter text which will be used as Image credits. Leave blank if no title is needed.', 'myname' )
          ),
        array(
          'type'        => 'textarea_html',
          'holder'      => 'div',
          'heading'     => __( 'Content', 'myname' ),
          'param_name'  => 'body_text',
          'description' => __( 'Enter the Body of the news', 'myname' )
          )
        )
      ) );

    in this codes.. the only thing that is not working properly is the textarea_html in my visual composer.

    if the content has no image added the vc_map is operational in the editor and in the frontend.

    But when I add an image, after saving the content in the editor, the contents in the textarea_html will be shown in the holder and that’s where it should be, BUT when i click edit again it can’t populate the content of the textarea_html but the other contents like textfields are shown.

    any ideas? Thanks..

Viewing 1 replies (of 1 total)
  • Hi,
    This is from their official doc
    textarea_html – 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

    So try rename it from ‘body_text’ to “content”

Viewing 1 replies (of 1 total)
  • The topic ‘Visual Composer Unable to Populate textarea_html when image is inserted in edit’ is closed to new replies.