You can get the thumbnail URL with wp_get_attachment_image_src and get_post_thumbnail_id:
$src = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), 'thumbnail' );
echo $src[0];
Related Posts:
- Closing the loop…featured image variable based on post id
- Loop doesn’t give the thumbnail the right parent (or class)
- WordPress loop specific thumbnail size
- How to scale image with equal width and height without distortion?
- Change post featured image on hover
- Customize WooCommerce Product Images (Placement and size) [closed]
- Targeting a Certain Post in Loop (CSS)
- How do I get row padding in a post feed?
- Including post thumbnail url in loop’s post object to reduce number of queries
- show random image in loop if image is not set
- Redirect to another page using contact form 7? [closed]
- How do I get my main image to stretch the full length of the screen?
- Can I add generic numbering HTML classes to items as a loop runs?
- WP Loop. If featured image is a panorama (3:1 ratio) execute some code
- Is there any good reason for two CSS files to @import each other?
- something strange is happening to my code
- Pulling in featured image into default recent posts widget
- using wp_get_attachment_image_src in foreach loop
- How to print redux gallery feilds id? [closed]
- Display post formats differently on index.php (loop in function)
- WordPress get post thumbnail url
- How to output thumbnail twice in a loop
- Multiple instances of Featured Image Thumbnail As A Background On Homepage
- Default featured image set as background image [closed]
- Adding first and last classes to three column layout in Bones boilerplate
- How can I access a post’s feature image outside the loop?
- How to check all items in a loop have post thumbnail?
- wp_get_attachment_url not fetching URL?
- Insert content above an embedded video inside Wordress’ php the_content
- WordPress posts in the loop not stacking side by side
- Get gallery in loop through ajax
- Get a specific size from wp_get_attachment_image_src
- How to show category image if no featured image is set?
- Return only one post format in index.php [duplicate]
- Cant pull in featured Image
- Featured images are cropped on index and post page
- Thumbnail of the latest posts page
- change the_content images for different sizes (Desktop, tablet, mobile)?
- Get gallery and product gallery images full size
- Building theme so user can change header image [closed]
- Is there a way to target only images within the loop?
- Any disadvandages if I style the wordpress align classes without img and .wp-caption prefix
- Add Div IDs dynamically to CSS
- Change the way wordpress outputs images or image galleries
- Pages with a loop (index, archive) are loading the first image as post_thumbnail
- Image width issue in IE [closed]
- Problem with ms-thumb-frame-selected class in Master Slider
- Display Featured Image
- Place the Featured image on a post, before the first via code
- Missing feature image link function
- Counting the posts of a custom WordPress loop (WP_Query)?
- Is it necessary to reset the query after using get_posts()?
- Is there any difference between the_title() and echo get_the_title()?
- Pagination not working on home page
- set_post_thumbnail_size in percent, not pixels?
- Get ID of a page containing secondary loop in content
- is_home, and is_front_page conditional problem
- Exclude category by slug for for each loop
- WordPress Loop Through Particular Pages
- The main Loop is not starting in a custom blog template page
- Get original image from thumbnail URL
- connect last post with first post
- Assign a picture URL to a page via PHP
- Chopping up a large ajax request of around 200 posts [closed]
- Custom loop with conditional statement to separate each terms
- Breaking the loop?
- woocommerce stored variable
- Image not shown in the theme as it’s showing in HTML template [closed]
- show first 3 thumbnails of posts in different sizes [closed]
- Do I need to use The Loop on pages?
- height should be set to auto to avoid pixelation in the post thumbnail function
- Is wp_reset_postdata() redundant after the main loop?
- Exclude first post (sticky or not) from the loop using query_posts()
- Should I not compress my jpeg files before uploading to avoid double compression?
- Generating a certain sized thumbnail on the fly?
- While loop with bootstrap [closed]
- Need to add class to first element in a foreach loop
- Scrolling Posts with Ajax
- How to only publish posts with image in it
- how to replace get_template_part(‘loop’,’tag’) with explicit styled version?
- Grabbed Post ID under WP loop, but still couldn’t Print Post title
- How to separate posts loop in to two columns? [duplicate]
- Blank content php code not parsing advanced custom fields gallery add-on [closed]
- Custom caption output for custom image size
- Add_image_size not generating correct size
- Using jQuery .after inside loop
- How can I scale down the width of images in bulk that are embedded in posts throughout the site?
- Custom Header added within Dashboard pages, is this possible with custom template files?
- Loop order issue with Ajax filter
- Delete media from the post but keep my featured image and post
- How to echo images Urls from a wordpress post, that are relally in the post
- Custom Query with Sticky Posts
- Image thumbnail on single product issue | WooCommerce
- Limit article to 100 characters. Can’t use the_excerpt…
- This webpage has a redirect loop issue with SSL page
- Buddypress Group Activity Loop Filter activity type [closed]
- $do_not_duplicate is not working in genesis theme
- Loop displays current page
- Remove default Image Sizes
- Import alt text in set_post_thumbnail