Carousel help images (php, custom fields)

0

Good I have the following doubt, I have created this carrousel of images taking the data of custom fields. The case that in the image, the corresponding link does not apply and no image appears in the carrousel.

Previously if I do a var_dump ($ casosexitoespecificos ['image']), if it shows the links correctly.

Client_name and description shows it correctly.

<?php $carousel = '[vc_row][vc_column][ultimate_carousel slide_to_scroll="single" title_text_typography="" slides_on_mob="1" autoplay_speed="3000" el_class="carousel-sectores" dots="off" item_space="0"]'; ?>

<?php foreach ($casos_exito_carrousel as $casoexitoespecifico) {

        $carousel = $carousel.'[vc_single_image image="'.$casoexitoespecifico["imagen"].']';
        $carousel = $carousel.'[vc_column_text]'.$casoexitoespecifico["nombre_cliente"].'[/vc_column_text]';
        $carousel = $carousel.'[vc_column_text]'.$casoexitoespecifico["descripcion"].'[/vc_column_text]';
}?>

<?php $carousel = $carousel.'[/ultimate_carousel][/vc_column][/vc_row]'; ?>
    
asked by Caldeiro 31.08.2018 в 13:13
source

1 answer

0

you are not closing the image code:

Your code:

'[vc_single_image image="'.$casoexitoespecifico["imagen"].']';

The right thing (I think)

'[vc_single_image image="'.$casoexitoespecifico["imagen"].'"]';
    
answered by 31.08.2018 в 13:26