• Resolved annamichaelsen

    (@annamichaelsen)


    Hi!

    I am using SLB on an ACF gallery using slb_activate. None of the image descriptions are showing in the lightbox except for one (Aloe Hydra Massage Gel and Masque), which makes no sense to me as all images are uploaded the same way and stored in the WordPress Media Library.

    I have searched through the forum but didn’t find a solution.

    This is the code I am using to get the gallery:

    <?php $images = get_field('product_images-bilder');
        if( $images ): ?>
        <?php foreach( $images as $image ): 
            $content = '<div class="col small-12 medium-4 large-3"><div class="col-inner product-image">';
            $content .= '<a href="'. $image['url'] .'">';
            $content .= '<img src="'. $image['sizes']['large'] .'" alt="'. $image['alt'] .'" />';
            $content .= '</a>';
            $content .= '<div class="caption">' . $image['caption'] . '</div></div>' . $image['description'] . '</div>';
    
            if ( function_exists('slb_activate') ){
                $content = slb_activate($content);
            }
            echo $content;?>
        <?php endforeach; ?>
    <?php endif; ?>

    I will be grateful for your help on this!

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Description not showing’ is closed to new replies.