jcastroa
Forum Replies Created
Viewing 2 replies - 1 through 2 (of 2 total)
-
Forum: Plugins
In reply to: [Simple Lightbox] SLB and ACF not showing single post imagesI didn’t realised that I had pasted the same code several times. OOps.
<?php $images = get_sub_field('property_gallery'); $myPropertyAddress = get_sub_field('property_address'); if( $images ): ?> <div class="gallery"> <ul> <?php foreach( $images as $image ): $content = '<li>'; $content .= '<a class="gallery_image" href="'. $image['url'] .'">'; $content .= '<img src="'. $image['sizes']['thumbnail'] .'" alt="'. $image['alt'] .'" />'; $content .= '</a>'; $content .= '</li>'; if ( function_exists('slb_activate') ){ $content = slb_activate($content); } echo $content;?> <?php endforeach; ?> </ul> </div> <?php endif; ?>The above code is for showing the gallery with the SLB. I have not been able to solve this issue.
Any ideas or suggestions?
ThanksForum: Plugins
In reply to: [Simple Lightbox] SLB and ACF not showing single post imagesThank you for the reply. I did as suggested but no luck.
Please have a look at the page and what I mean.http://lgk.jcacreative.com/lgk/listed/
here is the code for the Gallery and SLB:
<?php $images = get_sub_field('property_gallery'); $myPropertyAddress = get_sub_field('property_address'); if( $images ): ?> <div class="gallery"> <ul> <?php foreach( $images as $image ): $content = '<li>'; $content .= '<a class="gallery_image" href="'. $image['url'] .'">'; $content .= '<img src="'. $image['sizes']['thumbnail'] .'" alt="'. $image['alt'] .'" />'; $content .= '</a>'; $content .= '</li>'; if ( function_exists('slb_activate') ){ $content = slb_activate($content); } echo $content;?> <?php endforeach; ?> </ul> </div> <?php endif; ?><?php $images = get_sub_field('property_gallery'); $myPropertyAddress = get_sub_field('property_address'); if( $images ): ?> <div class="gallery"> <ul> <?php foreach( $images as $image ): $content = '<li>'; $content .= '<a class="gallery_image" href="'. $image['url'] .'">'; $content .= '<img src="'. $image['sizes']['thumbnail'] .'" alt="'. $image['alt'] .'" />'; $content .= '</a>'; $content .= '</li>'; if ( function_exists('slb_activate') ){ $content = slb_activate($content); } echo $content;?> <?php endforeach; ?> </ul> </div> <?php endif; ?>thanks for taking the time to look at this.
Javier
Viewing 2 replies - 1 through 2 (of 2 total)