I see many methods of showing thumbnails in WordPress, but I’m not immediately sure how I could get only the path to a post’s thumbnail rather than the html-ready code generated by functions like the_post_thumbnail()
and get_the_post_thumbnail()
.
What methods are available to me to get only the path of the thumbnail (to set it as a bgimage) rather than the <img />
tag? Do I only have the option of parsing the results of the get_
method or is there an easier way?