Hi,
I am currently developing a website where the user can upload an image, which displays as a thumbnail.
I have now installed the ThickBox plugin and want the ability to click on the thumbnail, and thickbox display the original image.
I've gotten so far as to get thickbox to work, but no image appears as of yet...
This is my code:
<div class="gallery-pic">
<a class="thickbox" href="???????????????"><?php the_post_thumbnail( 'artwork-thumbnail' ); ?></a>
</div>
As you can see I am unsure what I need to place in the href attribute to call the original image file.
Please can you help?!
Thanks in advance.
<a class="thickbox" title="<?php the_title(); ?> <?php _e('(press ESC to close)');?>" href="<?php echo wp_get_attachment_url($post->ID); ?>"><?php echo wp_get_attachment_image( $post->ID, 'medium' ); ?></a>
Didn't work.. My thumbnails also dissapeared?
I have tried this also:
<a class="thickbox" title="<?php the_title(); ?>" href="<?php echo wp_get_attachment_image($post->ID); ?>"><?php the_post_thumbnail( 'artwork-thumbnail' ); ?></a>
This brings my thumbnails back, loads thickbox but with no image.
I am using the thumbnail, as the images come from a custom post type using Featured Image.
Any more advice??
Cheers :)