Costume elemente not saving data

Question

Im trying to develop my own visual composer o wpBakery element, and im having trouble saving the changes on the element i dont know why is not saving the data.

this is when i save the data:

enter image description here

and then when i do any actualization this is left:

enter image description here

This is the VC_MAP:

Is an elmente the takes 3 images 2 textfields(does work i dont know why) and 1 text area

vc_map( array(
 "name" => __( "Suma puntos banner", "bauhaus" ),
 "base" => "suma_puntos_banner",
 "class" => "",
 "category" => __( "Custome", "bauhaus"),
 "params" => array(
array(
       "type" => "attach_image",
       "holder" => "div",
       "class" => "",
       "heading"     => esc_html__( "Imagen de fondo", "bauhaus" ),
       "description" => esc_html__( "Add Imagen de fondo.", "bauhaus" ),
       "param_name" => "bgImg",
       "value" => __( "", "bauhaus" ),
       "description" => __( "Imagen de fondo", "bauhaus" )
),array(
   "type" => "textfield",
   "holder" => "div",
   "class" => "",
   "heading" => __( "Cantidad de puntos", "bauhaus" ),
   "param_name" => "ctaDePuntos",
   "value" => __( "", "bauhaus" ),
   "description" => __( "Texto que se ubica en el globo debajo de 'Desde'", "bauhaus" )
    ), array(
    "type" => "attach_image",
    "holder" => "div",
    "class" => "",
    "heading" => __( "icono chico", "bauhaus" ),
    "param_name" => "smallIcon",
    "value" => __( "", "bauhaus" ),
    "description" => __( "Icono chico a ubicado a la izquierda del Cantidad de Puntos.", "bauhaus" )
    ),
   array(
   "type" => "attach_image",
   "holder" => "div",
   "class" => "",
   "heading" => __( "icono grande", "bauhaus" ),
   "param_name" => "bigIcon",
   "value" => __( "", "bauhaus" ),
   "description" => __( "Icono grand a ubicado abajo a la derecha del Cantidad de Puntos.", "bauhaus" )
),array(
   "type" => "textfield",
   "holder" => "div",
   "class" => "",
   "heading" => __( "Titulo", "bauhaus" ),
   "param_name" => "title",
   "value" => __( "", "bauhaus" ),
   "description" => __( "", "bauhaus" )
  ),array(
   "type" => "textarea",
   "holder" => "div",
   "class" => "",
   "heading" => __( "texto", "bauhaus" ),
   "param_name" => "text",
   "value" => __( "", "bauhaus" ),
   "description" => __( "", "bauhaus" )
  )
 )
) );

Then here are the shortcodes:

add_shortcode( 'suma_puntos_banner', 'suma_puntos_banner_func' );
function suma_puntos_banner_func( $atts, $content ) {
$content = !empty( $content ) ? $content : "";
$atts = shortcode_atts(
    array(
        'bgImg' => '',
        'title' => '',
        'ctaDePuntos' => '',
        'smallIcon' => '',
        'bigIcon' => '',
        'text' => '',


    ), $atts

);




?>
    <h1> Funciono? </h1>

}

0
, , Web EmprendeProp 2 years 2019-11-29T13:13:08-05:00 0 Answers 82 views 0

Leave an answer

Browse
Browse