Use
<?php the_permalink(); ?>
to get the link to the current post. Essentially replace whatever the href property of the image link is right now so it looks similar to :
<a class="post-thumbnail" href="https://wordpress.stackexchange.com/questions/329185/<?php the_permalink(); ?>" >
Related Posts:
- Find posts without featured image? [duplicate]
- Big Image on Featured Post, Normal on Single Post
- Setup Featured image on all posts from thesis thesis_post_image custom field?
- Making a thumbnail if there exist a link with. jpg or .png extension in WordPress
- Title image is missing ( but is not the WP 3.5 issue )
- Programmatically get images by URL and save in uploads folder
- How to automatically add rounded corners to thumbnails?
- How to change image type for specific size?
- Is there a simple way to just insert a link to an image (without inserting an image)?
- is it possible to replace the use of gd_lib with imagick or ImageMagick?
- Default Image Link Removal
- Remove title attribute from images
- Insert an image into a post by API
- How to limit number of images being printer out in “Set Featured Image” pop up?
- Black and White thumbnails
- How to grab first image attached to post and display in RSS feed?
- Double thumbnails?
- How to add a link in a image’s caption?
- No srcset for hard-cropped thumbnails
- Displaying a featured image (only img url) as the img src?
- Download button for Featured Image in every post – automatically
- Removing Title Tag from Thumbnails
- When displaying the featured image, is has_post_thumbnail() necessary?
- Get original image from thumbnail URL
- attach unattached featured images to respective posts
- WordPress reduces the full size image and uses it as the original
- Thumbnails are bigger in size than the original image
- Remove image classes from post thumbnail output
- Special purpose photos with each post
- SVG Featured image not shown in twitter
- Featured images not displaying at full resolution
- Print specific image size in galley loop
- All Images on wordpress site broken
- WordPress crops images differently on retina screens?
- How to use photo in multiple posts?
- Move Image Captions Inside Link ( tag) if Added
- How can I add a “data-pin-nopin” the featured image html?
- Help With Custom Image and Text Widget
- Images stopped loadding after adding SSl
- Fixing image names for a site being restored
- Export xml use/import images from theme directory
- Generate images to be associated for tag and category?
- Get custom thumbnail sizes [duplicate]
- Bulk-add featured images in posts with no featured image
- Should I not compress my jpeg files before uploading to avoid double compression?
- Add clickable link on an image
- Custom responsive ‘featured image’ sizes
- Is it possible to preserve original images in order to change image size later?
- the_post_thumbnail(‘medium’) setting some images width=1 height=1
- Generating a certain sized thumbnail on the fly?
- How do you import images from a URL in your post?
- How to set uploaded image as featured image wordpress
- What can i do add title to ‘large’ image?
- Height and width attribute not setting by the_post_thumbnail
- add_image_size function not working
- How to force WordPress to upscale images?
- Why doesn’t WordPress use the smaller sized image?
- What sense makes medium_large_size_h => 0?
- How to set minimum required size for featured image?
- All Images not calling alt text
- Is it possible to enable the ‘Link To’ field under ‘Attachment Display Settings’ for a Featured Image?
- Remove Additional image sizes created by theme
- Use default image as var
- Placing a featured image into header
- How to add thumbnails to posts and pages automatically in a uniformed fixed elegant way?
- How do I display the featured image from an image gallery using a reference in code? (example within)
- Using different size thumbnails on different parts of my site… with functions.php?
- attach several images to post + gallery
- How to only show div of caption if caption exists on featured image
- Delete media from the post but keep my featured image and post
- Link to products with the same image title (woocommerce)
- How to echo images Urls from a wordpress post, that are relally in the post
- WordPress Responsive Image ( srcset ) not work properly
- How to Display Image Caption but Not Alt Text
- Force WordPress to always generate a thumbnail for original image
- Get post thumbnail in specific size
- Why image Thumbnail url is not displaying with custom size?
- How to set a post featured image from an already made custom field
- featured image in custom poste type (backend)
- Why does wp_get_attachment_image_src return the wrong size, when the correct size exists?
- stop wordpress from resizing feature gif images
- Image linking and lightbox
- set_post_thumbnail_size only working for width
- Newly uploaded images are not updating in featured image
- Troubles with code for upload a image
- Declare global variable that can be used on other function
- How might one programmatically set the link for all images in all posts?
- Images not showing after moving site
- Black and White Thumbnail in WordPress Gallery
- Create post thumbnails from images stored outside of uploads directory
- Getting top Image From the Gallery and printing out a thumbnail with Exact Dimensions
- has_post_thumbnail() Returns False on Scheduled Posts
- Orientation of featured image in post?
- How to show file size of featured image? [duplicate]
- How to show file type of featured image?
- 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)
- set_post_thumbnail or media_sideload_image adds image multiple times in media library
- Edit multiple posts featured image
- Is there a way to upscale a media library original image to the nearest whole pixel in WordPress?