please help me. how to get only featured image url. just like <img src="---featured image url---"/>.
please some body help me.
thanks.
please help me. how to get only featured image url. just like <img src="---featured image url---"/>.
please some body help me.
thanks.
http://wordpress.org/support/topic/retrieveing-featured-image-url?replies=12
please try and use forum or web search
@alchymyt thanks ans. but this code dose not work. i want only image src link.
try:
$thumb = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), 'thumbnail' );
$url = $thumb['0'];
http://codex.wordpress.org/Post_Thumbnails
if this should not work, please give more details.
thanks for help. but i get a new code `<?php
if(has_post_thumbnail()) {
?>
<div class="featured-image-container"><a href="<?php the_permalink(); ?>"><?php the_post_thumbnail('medium'); ?></a></div><?php
}
?>`
thanks again
You must log in to post.