HI,
you can try with this code:
if (geodir_is_page('detail')) {
$post_images = geodir_get_images($post->ID, 'thumbnail');
$thumb_image = '';
if (!empty($post_images)) {
foreach ($post_images as $image) {
$caption = (!empty($image->caption)) ? $image->caption : '';
$thumb_image .= '<a href="' . $image->src . '" title="'.$caption.'">';
$thumb_image .= geodir_show_image($image, 'thumbnail', true, false);
$thumb_image .= '</a>';
}
}
} elseif (geodir_is_page('preview')) {
if (isset($post->post_images))
$post->post_images = trim($post->post_images, ",");
if (isset($post->post_images) && !empty($post->post_images))
$post_images = explode(",", $post->post_images);
$thumb_image = '';
if (!empty($post_images)) {
foreach ($post_images as $image) {
if ($image != '') {
$thumb_image .= '<a href="' . $image . '">';
$thumb_image .= geodir_show_image(array('src' => $image), 'thumbnail', true, false);
$thumb_image .= '</a>';
}
}
}
echo $thumb_image;
This will output the content of the default Photo tab.
Let us know how you went,
Thanks