i want to get image full path so that i can apply it in the src attribute of image element.
what i am getting right now is the image, generated from function: the_post_thumbnail(); which i can't apply to image element
what i did so far is:
<?php $d=get_cat_ID( 'news' ); $catquery = new WP_Query( 'cat='.$d.'&posts_per_page=1&order=DESC' ); while($catquery->have_posts()) : $catquery->the_post(); the_post_thumbnail(); endwhile; ?>
what i want is; path of image with its name as below: