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
- Error in Wordprewss loop for page template [closed]
- wordpress featured image
- Want to images load first then title in WordPress loop
- Tags outside the loop
- Display all posts in a page code for template
- Why is inline CSS added to images automatically? [closed]
- How to add a continuous number to HTML tag attribute value inside The Loop [closed]
- Undefined variable: woocommerce_loop [closed]
- Loop that displays all posts by logged in user, with Post Edit link
- WordPress Not Sorting By Custom Field
- How to store wordpress title in a variable
- Add a background image into a post [closed]
- How to split the loop every 2 and 5 results? [closed]
- title not being printed within html tag [closed]
- How to Add a Website Background Image to One Page?
- Front end post or photo or both
- Create decorative image border with CSS? [closed]
- How can you make it so the comment box shows on some pages or posts but not all?
- Why is the image in div not displayed in full-size?
- Why did my most recent article fall behind an older one on my site?
- Prevent duplicating specific column from database table
- image_size with respect to aspect ratios
- Remove default Image Sizes
- Import alt text in set_post_thumbnail
- Why some images are not allowed to be edited only for thumbnails?
- Two loops in CPT archive page, exclude posts from main query
- Insert multiple custom components after x-number of posts
- Hide old posts each year
- I tried to move the featured image below the paragraphs but now it is displaying twice
- How to import external media items into wordpress media library (without using storage)
- How to get files from loop for zip
- Hook in the loop after the first post
- wp_mail sending only once inside foreach loop
- How home my code doesn’t display any feature image? Looping through post from a taxonomy and not getting feature images back
- How to use orderby on meta_value when using Pods custom database table storage
- Generate and upload screenshot as featured image for user-submitted post
- Landing page with login
- Divide loop into several columns based on post custom field and enable infinite scrolling
- How i can display all posts order by years
- WordPress update leads to 404 error on admin page and signup. CSS mishap with all plugin related functions
- How can I use an image from an external source without uploading it to the media library
- I am having trouble displaying an image at the top of a widget area [closed]
- wp_mail function not working in user query loop
- WordPress pointing animated GIF images with wrong file name upon upload (GIFs animation not working)
- I make sticky post for my archive page for custom post type with ACF field and loop is not working
- set_post_thumbnail or media_sideload_image adds image multiple times in media library
- Is there a way to add background-image to theme.json?
- I want to resize post featured image without cropping image. How?
- How can I create an entirely new, separate display of posts?
- Add static image block to lastest list item
- Query Loop Block: possible to restrict just child pages?