You can use the get_the_post_thumbnail_url
explained here
So, the code would be
<a href="https://wordpress.stackexchange.com/questions/279104/<?php echo get_the_post_thumbnail_url(get_the_ID, array (2000, 1500) ) ?>" >....... </a>
Related Posts:
- How can you set maximum width for original images?
- WordPress Image Editor not working – conflict?
- Image dimensions same as image size
- Best image hosting service
- Filter what image sizes get generated
- Media > Image Sizes aren’t being applied to uploads
- add_image_size landscape or portrait
- Force WordPress, themes & plugins into using defined sizes
- WordPress Media Image Manager — Creating Lots and Lots of Odd Sized Images
- Large image size stuck on old value, even for new images
- Can I force all uploaded images to be reduced in quality?
- Rotating image does not work for custom image sizes
- Editing image dimension – to edit the main image file
- Force image crop size in media editor
- Set Maximum Width for an uploaded image
- When inserting an image in a post, how to link the image to a resized URL instead of the full image URL?
- How do I get WordPress to create resizes of a supplied default image in a theme?
- TwentySeventeen $content_width not updated in admin
- How to resize image in wordpress from backend? Seems like bug in wordpress
- Only current gallery images with get_attached_media
- Custom image sizes
- Restricting users to view only media library items they have uploaded?
- Prevent WordPress from generating medium_large 768px size of image uploads?
- Cleanup uploads folder, Media Library db structure
- Rendering the uploaded file in a wp.media object
- Linking a PDF as a downloadable document
- How to set the default embed image size
- Adding a custom image upload size and making it selected by default?
- How do I detach images from posts?
- Is is possible to crop an image after uploading
- How to make WordPress use protocol indepentent upload files?
- Change default tab of media manager
- Is email post notify visitor on new media upload possible?
- How to set additional parameter in wp.media?
- upload featured image from front end using wordpress add media button
- How do I control video media display sizing with native wordpress player
- Media sizes aren’t being created – server config?
- Handle lots of images within the media uploader / selector
- custom image size with New Media Manager in wordpress 3.5
- Retrieving and Storing Images Linked from Other Domains on Local Server?
- FTP files directly to Media Library wp-content\uploads
- How to make programmatic image upload generate thumbnail and sizes?
- Can’t access ‘Store uploads in this folder’
- How to add qtranslate multi language support for media?
- Best way to strip character entities (%20 etc)
- Organizing media uploads
- 3.5 media.editor: what is the event listener for choosing an image?
- How to insert an Audio Player in a Post or Page?
- How can I receive the image id using the media box?
- Thumbnails are bigger in size than the original image
- Front end wp_editor not rendering audio/video links
- Meta query for a custom taxonomy on attachment
- Handling image uploads without thickbox
- Audio Player for MP3 Files for WordPress
- How select multiple document as like media gallery
- Rebuild the entire WordPress uploads folder
- Get Image from Media Library with the Title
- See List View – or Image titles- of Media Library when “Add Media” button is used
- How to hide some specific attachments using post meta from media library
- How to extend an existing (Gutenberg) block
- Importing Media IDs but not related attachment
- WordPress Media Uploader in page template (On Front-end)
- Allow Editor Role to Edit Media
- Bulk image importing from folders
- WordPress media file link with fancybox
- Post and featured image have the same name, why is the attachment (image) is showing and not the post?
- Too slow Image upload in WordPress Media Library as image number increases
- Use staging media files on development site in WordPress
- Getting a specific value out of array using get_attached_media
- WordPress 3.6 native player is not responsive?
- Thumbnail images chopped off but not cropped to exact dimensions
- Uploading a media item with the wp-json API to a specific path
- How to disable (and hide) the Media Library for certain users?
- Is it possible to enable the ‘Link To’ field under ‘Attachment Display Settings’ for a Featured Image?
- WordPress not creating “large” thumbnails
- Inserting Media to WordPress Posts
- Serving Images from subdomain in wordpress
- User uploads image as “Featured Image” but WordPress resizes it?
- Publish / unpublish media items in the media library
- Use media files from a different server just for one custom type
- Allow a specific user role I have created to only upload one image to his media library
- How to get all id_attachment with one loop?
- Built-in image lazy loading: Does it come with a polyfill for older browsers?
- Media isn’t showing in WordPress library but is available in uploads folder
- Post-processing of the image failed
- Media Library not loading
- Generate links on all images in posts – is there a hook?
- How to regularly backup and update WordPress website with lot of images?
- Zip all (original) images from media gallery
- cant able to upload media to my wordpress blog
- Change image in media library at specific time
- Import of 200+ sermons
- WordPress Media URLs?
- page displaying media caption shortcodes
- After import, oEmbeds non-functional until manual republish
- Media Library is not loading on grid view in admin panel
- Blurry Images WordPress 5.8.1
- How to automatically convert images to WebP on WordPress?
- How to import external media items into wordpress media library (without using storage)
- Add custom css class to wp-list-table row for Media Screen