The following ought to be much closer to what you want to achieve:
<div class="imgHentry">
<a href="https://wordpress.stackexchange.com/questions/74228/<?php the_permalink(); ?>" class="goto-icon">
<?php the_post_thumbnail(
'thumbnail',
array( 'alt' => get_post_meta( $post->ID, 'alt_tag', true ) )
); ?>
</a>
</div>
Related Posts:
- Regenerate missing _wp_attachment_metadata
- Get thumbnail url of custom meta image?
- Dynamic tagged image galleries
- Generate images to be associated for tag and category?
- Display an icon with get_post_meta?
- Remove “%” from strings in serialized arrays in wp_postmeta
- Image not showing using a custom function and get_post_meta
- How to join Caption AND Description Meta Fields as one combined-caption in Image Block
- How to Display Image Caption but Not Alt Text
- get_post_meta returning broken path in image src
- Adding Image Description below Images Inserted into Posts
- get_post_custom: get image URL instead of image ID
- Each custom image size in custom upload directory?
- How to automatically add rounded corners to thumbnails?
- Get attachment/image info in JS
- Auto-modifying original [full size] images
- show author image in posts
- How to limit number of images being printer out in “Set Featured Image” pop up?
- Replace Woocommerce Images
- Crop image to horizontal or vertical by code based on image size
- Pasting images removes class attribute
- How can I make all gallery images to open in a new window?
- Open the attachment details modal
- Crop image without scaling or resizing with add_image_size()
- copy attachments to another post type and change attachment url
- Can’t access ‘Store uploads in this folder’
- Is there a way to pull the first featured image in a loop and not all other featured images?
- How to Display Featured Image Title and ALT Attribute
- Is it possible to recover featured images after WordPress export/import
- how to stop generating different image sizes from parser
- Change the URL of an image from wp_get_attachment_image_src
- Do I need to resize an image to fit the post?
- Add Small Image Size to Media Settings
- Different image sizes for home and post pages
- Show full image thumbnail
- Make medium_large images available to insert into post
- alt tags of the images are not saving/emtpy
- Removing height and width from images with a caption
- Extracting gallery images in WordPress 3.5 on index.php
- Images not showing on blog
- Why does Google Image Search still display my images?
- Image auto resize
- Retrieve images from parent site to child site using current shortcodes
- WP fails to upload files to media library, /wp-admin/async-upload.php 403 forbidden
- Add a background image for Custom Post Type archives page
- Images stopped loadding after adding SSl
- Background-image not showing? [closed]
- GoDaddy Number of Image Files Per Directory Exceeded
- Post and featured image have the same name, why is the attachment (image) is showing and not the post?
- Scaling an image in a WordPress post
- Setup Featured image on all posts from thesis thesis_post_image custom field?
- Alter image meta fields in the Media Library
- Moving media library to the media library of completely different site
- convert post title to image
- Can you check if a post WYSIWYG field has an image in it?
- how to put image and text on same line [closed]
- Different background images on different sites [closed]
- Upload media only to DB
- Google Page Speed Insights – Optimize Images
- Weird failing request
- Is there a way in WordPress to convert images to WebP without a plugin?
- Partial img lazy load with WP 5.5
- Can’t see images in posts after migrating site to subdomain
- How to setting up the custom size thumbnail for wp_get_attachment_thumb_url()?
- Images dont show up on an iPhone [closed]
- Moving an image to the side [closed]
- How can i identify media uploaded to my website that is not being used anywhere anymore?
- Placing a featured image into header
- Function to grab specific image IDs from media library.
- image URL changed in wordpress
- Maximum image width/height?
- How can we upload common images only to AWS S3 using WordPress?
- Shortcode not work in picture source srcset tag
- wpdb function for filtering the images by title
- How to echo images Urls from a wordpress post, that are relally in the post
- Adding Post Thumbnail to Metro Pro Theme
- media_handle_upload() with 1 image under 1Mb chokes my server and returns timeout error
- WordPress does not load most theme images
- Updated wordpress missing image upload area
- convert images and media url into blob url
- get_post_gallery with Gutenberg
- How to find the largest images in wordpress post
- New portfolio items appearing smaller on the grid
- Image automatically resized
- WAMP install acts different than live install when uploading images
- Images Wont Display After Importing From Old WordPress
- Image thumbnail on single product issue | WooCommerce
- How can I hook and edit on the fly an image uploaded
- Anomaly with response coming from XML RPC Api get Post (integer out of range)
- Make all images displayed in single.php a certain size
- wp_get_attachment_image_src
- I am trying to get metabox image with custom size
- Removing image dimensions from `the_content`
- Is there a different way to grab a thumbnail image than this?
- Multiple gallery thumnbnails on one page
- Change image link in excerpt to point to post
- Putting the title attribute in image tag — Snapshot Theme from Woothemes
- Post migration – images do not display
- Change the avatar ratio?
- wp_handle_upload Image sizes