I am using a this function to get the featured images
<a href="#" rel="prettyPhoto">
<?php the_post_thumbnail('thumbnail'); ?>
</a>
now i want to get the full featured image on click on anchor tag for which i need a featured image url in
<a href="here" rel="prettyPhoto">
please help
Check the code below and let me know if it works for you.
Try this one
<?php echo get_the_post_thumbnail($post_id, 'thumbnail', array('class' => 'alignleft')); ?>
You can change thumbnail_size value as per your require size.
You can also get it from post_meta like this:
You can also use for getting the url for image attachments as follows. It works fine.