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 can also use for getting the url for image attachments as follows:
If you want JUST the source, and not an array with other information:
You can try this:
You can try this.
This is the most simplest answer.
<?php $img = get_the_post_thumbnail_url($postID,'post-thumbnail' ); ?>