SLB and ACF Gallery – slb_activate
-
Hi,
I’m trying to get SLB to work with ACF Gallery. I read an earlier thread but it was over my head.This is what I have, which ACF say is correct. No SLB code is currently being output with the images.
function member_loop() { $member_since = get_post_meta(get_the_ID() , 'member_since', true); //custom member since field $images = get_field('image_gallery'); echo get_the_title(); echo '<br/>'; echo 'Member since: ' . $member_since; if( $images ): ?> <div> <ul class="slides"> <?php foreach( $images as $image ): ?> <li> <?php $image_url = $image['url']; ?> <?php $content="<img src='$image_url' />"; ?> <?php if ( function_exists('slb_activate') ) ?> <?php $content = slb_activate($content); ?> <?php echo $content; ?> <p><?php echo $image['caption']; ?></p> </li> <?php endforeach; ?> </ul> </div> <?php endif; }
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘SLB and ACF Gallery – slb_activate’ is closed to new replies.