I believe you need to pass the third $crop
parameter to set_post_thumbnail_size
. In other words…
set_post_thumbnail_size(80, 80, true);
That third parameter enables a “hard-crop” mode. From the Codex:
Set the default Post Thumbnail size by cropping the image (either from
the sides, or from the top and bottom):
Without that argument, or with it set to false
, you get a resize without distortion– ie. as close as possible to your dimensions. Also from the Codex:
Set the default Post Thumbnail size by resizing the image
proportionally (that is, without distorting it):
Related Posts:
- Remove images (files) that were generated when using add_image_size()
- Displaying images from external RSS feeds?
- Why should I use “Organize my uploads into month- and year-based folders” option? (Cons/Pros)
- Which action hook can I use when a featured image has been selected
- Displaying images with relative paths in the editor
- Prevent image upload unless exact size
- Fixing external image urls
- Associate an existing image with a post
- Need help building a filter to edit the output of “image_send_to_editor”
- Image resize with image url
- Preview Image Path in Admin Section
- The WordPress Gallery, Grabbing The Link and Images?
- How to upload image without post ID using the new media uploader?
- Featured Images on Front Page
- Display different header images based on current page
- How to upload images from my directory into my wordpress?
- Ability to edit image via WYSIWYG
- Why images/photos after being uploaded to my wordpress site get slightly blurry?
- Featured Image .svg height and width 1px only
- Extend core block attributes in post content
- Images are randomly deleted from server
- Rename image file by post title
- Rename media files generated during upload
- Featured image (responsive) above content is too small after update to WordPress 4.4
- How to show only posts with images?
- How Do I Delete All The Images from WordPress
- Consolidating two websites into one, but migrated images not appearing in Image Library
- Image popup in a lightbox / overlay from the backend 3.5 admin area (plugin)
- Auto resize images after adding a new size
- Upload .doc to blog
- media sideload image and Google Content
- How can I insert an image map into a WordPress blog post?
- image in my post disappeared after I upload website to remote server
- Isolating images in uploads not used/recognised by WordPress
- Add width & height attributes to Gutenberg’s image output?
- How to filter the image embed code based on link type
- Include image in excerpt
- images not showing after transfer
- Retain the original name of the image on resize
- WordPress 4.1 header image problem
- force feed readers to pick atom version
- Is there any way to Integrate WordPress with Imgur for Image Hosting
- Creating a post image to show in a gallery
- Don’t show images inserted into content
- Replace post/page titles with an image in WordPress
- What happened to the media manger?
- Add custom metabox to media library images
- Howto use WP built in Thickbox for images?
- Remove Image Sizes in Media Settings Page
- WordPress Image Scaling Quality
- Create a post from every image in my media gallery
- Retrieve Image Attachments Getting Post Thumbnail Image First
- Is there a wordpress filter to edit the markup of inline images?
- Alt text not showing up
- Removing Images from a WordPress Post
- Random Image Script Working but Want to Avoid Duplicates
- How to post images on my blog with a pre-defined border
- HTML Img with data:image src gets sanitized in admin?
- Can’t find image to remove
- How to add a custom class to all the images for a page only?
- How to link image in WordPress – Elementor when certain element does not offer that option?
- How can i place featured image after h2
- Custom image size not displaying with wp_get_attachment_image()
- Images getting smashed
- Unset image sizes before images are uploaded
- unsharp thumbnails after uploading image
- How to delete original image file after upload and resize
- Wrap post images with a link, not figure (image_send_to_editor doesn’t work)
- An error has occurred during the upload process in wordpress 5.3.2
- get_the_post_thumbnail() title and alt attributes not displaying
- Access html element in media modal with jQuery
- Jetpack Lazy load images fade in
- add alt text to images loaded from json with media_sideload_image
- How to make image uploads default to full size?
- WordPress images programatically display error
- Image is missing on site homepage
- Load only imagens resized in custom page
- How to see previous –next image option in the theme?
- Put image onto header
- Getting the Select and Crop Functionality Using Custom Fields
- Changing current post image uls with a function
- Display images in template file
- Need help making my homepage blog image smaller than my post image
- Changing image size displayed in wordpress twenty fourteen theme
- How to add multiple images in a page
- Only User Upload image Http Error
- See the all uploaded images of a user as an admin
- Broken Media Library
- wp_get_attachment_image_src() does not return what I want
- how to display all images from their siblings/ from same parent?
- Define Folder to save Images
- Wrap a post image with a div if it doesn’t have a caption
- adding images to wordpress pagination?
- Custom filename when pasting an image from clipboard
- WordPress Bootstrap dynamic carousel showing images separately not as carousel
- How to display image ALT under image?
- Faster image upload on mobile [closed]
- How to import external media items into wordpress media library (without using storage)
- How to return responsive images from a sanitize_callback?
- How to disable Right Click on a image? [closed]