Hi Guys
Is it possible to have two or more lighthouses on one page showing only the images for one post.
What I want to do within the related listing tab on the detail page
is open a lightbox with the images for the related post instead of navigating to the posts detail page.
The problem is that the lightbox is showing all the images on the page and not just the image for the related post.
http://showroom.ie/showroom/ireland/dublin/dublin-7/interior-designer/dave-designers/#related_listing
You can see the related posts under the related listing tab (its called portfolio in my case) there are two posts
The first post has one image
The second has two images
But the lightbox loads up all images.
Is it possible to pass a div name or something to the light box so that is only shows images within that div?
Here is my code in listing-listview.php
<?php
echo(‘debug’);
echo($post->ID);
$post_images = geodir_get_images($post->ID,’thumbnail’);
$thumb_image = ”;
if(!empty($post_images)){
foreach($post_images as $image){
$thumb_image .= ‘<div id=”geodir-post-gallery” class=”clearfix”> src.'”>’;
$thumb_image .= geodir_show_image($image,’thumbnail’,false,false);
$thumb_image .= ‘</div>’;
}
}
echo $thumb_image;
echo(‘enddebug’);
?>
Thanks
dave