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
- remove or update add_image_size
- How to copy and paste a picture found on the web to wordpress easily
- Graphing libraries for WordPress [closed]
- add_image_sizes ignoring crop sizes and using proportion
- Get attachment ID of author_meta image – Attachment Metadata
- get_intermediate_image_sizes Get the Size Names but How Do I Get the Sizes?
- Alter image output in content
- How can I remove the image attachment ALT field?
- Change html structure of all img tags in WordPress
- Uploading images: ‘ø’ get replaced with ‘ø’
- Get a list of all image sizes that match aspect ratio of original one
- Insert image in comment reply
- Randomly add a ‘ul’ list of images
- custom image dimensions (for gallery)
- Screenshot.png not showing up
- Include photos in WordPress blog posts without uploading to Media Library
- Thumbnails are bigger in size than the original image
- The the post id from image id
- function to show only featured image of the posts
- media_sideload_image with rewritten urls?
- How to set a contact forms total size limit
- SVG Featured image not shown in twitter
- SEO – Media File Name Updating
- All Images on wordpress site broken
- WooCommerce-like featured gallery
- Multiple images in one attachment page
- How to keep WP from recompressing Full Size images
- How to use photo in multiple posts?
- Creating a thumbnail from an image already on the server?
- Alter the image, before save, of a particular image size
- Missing a temporary folder.error when image is uploaded in admin Set temporary Directory – WordPress 5.2.2
- Hero image cropped at different dimensions
- Locally Developing a wordpress website, cant get images to display?
- Is it ok to paste a WordPress Image URL into a post?
- How do I track down the origin of the alt text on a particular image?
- How to handle a background-size: cover image in WordPress?
- Problem Cropping Images From WP Customizer
- How To Get The File Extension Of Images Having Different Extensions In A Directory?
- How can I display an image description, from an image gallery?
- How to add images to a post without inserting them into the content area of the post editor?
- Is it possible to reduce image filesize on the fly (when users enter my website)?
- Why WordPress strips scr string from img tag off?
- Random image loader
- insert image alongwith with custom data via a frontend form
- Create a link to full-sized image attachment?
- Get image path : image is upload but not attached
- What sense makes medium_large_size_h => 0?
- Emoticons not working on my site
- How to use getimagesize() of image upload?
- limit number of images shown from gallery
- photo gallery implementation like tmz
- Graphics and Formatting Not Loading in WordPress on IIS
- How to Automatically import external images to Upload
- Fullscreen Page Background without Plugin [closed]
- Allow a specific user role I have created to only upload one image to his media library
- how to regenerate webp et-pb-portfolio-image
- How do I avoid color distortion of uploaded images?
- How to avoid images appear as post in google search?
- When upload a PNG a noise appears in the thumbnails
- How to auto add image caption from image alt?
- How to stop TinyMce from converting image url into ?
- How to automatically load an image inside the post, since it is present in uploads folder
- Change picture attachment meta of all occurrences of a picture
- Generate links on all images in posts – is there a hook?
- Decide how Hero image appears on mobile
- Broken images/videos after migration – DIVI theme- works ok on Mac OS
- Can’t figure out how to get space around an image? [closed]
- Show images from TEXT section on PAGE wordpress
- Where to add my code to auto attach images to existing products
- Set WordPress to Create different images format later, not during upload
- If file exists with page slug name show image else nothing
- How might one programmatically set the link for all images in all posts?
- page displaying media caption shortcodes
- Display different Images depending on the current day
- How to add a credit line to a photo caption
- Uploading Images for a section
- Some images suddenly not appearing
- Paginate Gallery [closed]
- WordPress: Preload next post images
- Image not showing in an archive page
- Set add_image_size() greater than content width in media box
- Remote Image (from URL) as Media Library element
- Theme using masonry layout script rendering overlaped images in Google Chrome [closed]
- Why is inline CSS added to images automatically? [closed]
- WordPress Theme: replace logo image with title site if file doesn´t exist on server
- WordPress update leads to 404 error on admin page and signup. CSS mishap with all plugin related functions
- How to get dimension of Logo and Crest
- WordPress Missing Images