Hi koc1000,
You can use the plugin’s templating system to override the HTML markup for the image and link the image. You’ll want to add to your theme your own copy of the /content/image.php
template. Currently that template looks like this:
<img class="fdm-item-image" src="<?php echo esc_attr( $this->image ); ?>" title="<?php echo esc_attr( $this->title ); ?>" alt="<?php echo esc_attr( $this->title ); ?>">
You can access the ID directly to get the thumbnail and full-size image and link it up like the Codex recommends:
if ( has_post_thumbnail() ) {
$large_image_url = wp_get_attachment_image_src( get_post_thumbnail_id( $this->ID ), 'large' );
echo '<a href="' . $large_image_url[0] . '">';
echo get_the_post_thumbnail( $this->ID, 'thumbnail' );
echo '</a>';
}
I think this will make the image compatible with several lightbox plugins like Simple Lightbox. Alternatively, you can link to the image template file like this:
echo '<a href="' . get_post_thumbnail_id( $this->ID ); . '">';
echo get_the_post_thumbnail( $this->ID, 'thumbnail' );
echo '</a>';
I haven’t tested this code but it should work.