Only returns the image path
-
Does not add any modifications to the image.
For example:
echo "<img src='".wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), 'css-sprite')[0]."' >";
Simply displays the path to the featured image
The topic ‘Only returns the image path’ is closed to new replies.