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
You will try this
If the post is an image and we already know what the image is. It's possible to get the thumbnail url without too much hassle.
echo pathinfo($image->guid, PATHINFO_DIRNAME);
This perfectly worked for me:
Easy way!
hi i think this is the most easiest solution and the updated one;