I wish to do something as simple as the_post_thumbnail('large') but I want the URL of the image only, not the HTML which goes with it. Is that possible ?
Use get_post_thumbnail_id() to retrieve ID, then wp_get_attachment_image_src() to retrieve array, that will have URL as first element.
Sign up using Google
Sign up using Facebook
Sign up using Stack Exchange
2 years ago