In your functions.php you want to issue a call to set_post_thumbnail_size()
https://codex.wordpress.org/Function_Reference/set_post_thumbnail_size
As with add_image_size, you provide the target width, height & whether you want the image hard cropped to these dimensions. So, for example,
set_post_thumbnail_size(427, 427, true);
will crop all your thumbnails to be a maximum of 427px high or wide, depending on aspect ratio of the original.
If you use
set_post_thumbnail_size(427, 9999);
then your images will be scaled to 427px wide without being cropped.
Related Posts:
- Missing feature image link function
- Removing default image size list in Media Box
- How to reduce original image quality on upload?
- Generating Responsive Background Image Sizes in PHP
- Why are image thumbnails cropped proportionally (not per dimensions)?
- Why are image thumbnails cropped proportionally (not per dimensions)?
- Display height and width properties with the_post_thumbnail() or related function
- Removing the first image in content
- Function to auto-set a featured image that is already in use
- wp_get_attachment_image function size argument not working if I also add a custom class
- Overwriting Parent Theme’s Image Sizes
- Can you put a condition on add_image_size() depending on the width of the uploaded image?
- show first 3 thumbnails of posts in different sizes [closed]
- Can’t generate thumbnail images
- Limit dimensions of “Full” size images
- How to hide image-url if no attachment?
- Can’t locate custom image sizes defined by child theme
- How to add a new image size and apply it to posts only?
- Featured Image keeps cropping
- Custom image sizes showing in Classic Editor only when upladed directly to post
- how can I change all wordpress media file url to custom cdn url?
- Can You Set A Minimum Image Dimension For Resizing Images?
- Featured image on archive page based on post type
- Printing medium sized image
- Zip all (original) images from media gallery
- Full size image option removing problem
- Image width issue in IE [closed]
- image_size with respect to aspect ratios
- Set JPEG compression for specific custom image sizes
- Issue with wp_get_attachment_image() and SVG file type
- How to change the markup WordPress inserts for post images
- How do I use the WP image functions in a page template?
- Get recent posts with thumbnail
- How do I use element instead of tags in WordPress post content having webP support?
- Add options to featured image
- Auto delete WordPress images/thumbnails (all sizes) and featured after X days/hours, or similar?
- Remove images from get_the_excerpt
- How do I get images (with a thumbnail preview) to show in search results?
- Setting featured image with function, 1 part not working
- Best way to programatically add “rel” attributes to page and post images
- Overwrite Parent Theme add_image_size in Child Theme
- Images uploaded using media uploader are appearing upside down
- img width and height attributes being set by get_the_post_thumbnail
- How to display more audio file ID3 tags in WordPress
- Thumbnails are bigger in size than the original image
- Count total number of images in post and echo results as number
- Get the 5 lastest Featured Posts from a category
- Getting Featured Image Caption to Only Show if Populated
- Can’t check if a post has thumbnail adding filter to get_post_metadata()
- Can I hide certain upload folders in media library [duplicate]
- Add Featured image column into wordpress admin on pages AND posts
- Automatically wrap multiple images in div
- Post thumbnail not showing in WP admin area for custom post type
- Understanding and altering the structure of posted images
- Backstretch.js and thumbnail sizes to reduce loading time
- Image rotation fails to regenerate custom sized thumbnail
- Featured Image Thumbnail Creation
- Automatically assign video ‘poster’ value to ‘filename’ for archive listing
- Display images that are not in the content
- Updating Media Published Date When Parent Post Is Modified in WordPress
- Getting custom image size URL in functions
- media resize/crop possibilities?
- It does not work concatenation in function.php
- Control the srcset much more (not all sizes in it each time)
- Way to store featured image width and height in two separate variables?
- srcset and custom field get_post_meta and wp_get_attachment_url
- Visual Composer creating own shortcodes with vc_map() to return simple Image
- is there a way to remove featured image from blog page and single page
- What are the meta fields for an attachment?
- Woocommerce image sizes missing from Appearance › Customize but not declared by theme
- Add attribute only to first image of every post via functions.php
- Need to convert image url to a Base_64 data url with wordpress function..
- Get featured image with custom size outside WordPress
- Is it possible to enable the ‘Link To’ field under ‘Attachment Display Settings’ for a Featured Image?
- Function to insert missing image size attributes into img tags
- WordPress not creating “large” thumbnails
- Change custom featured image size in twentythirteen child theme
- Add_image_size not generating correct size
- Using add_image_size in functions.php to get original uploaded file
- show all the posts thumbnails
- How to change images url in function.php?
- Which filter fires upon setting a featured image
- How to add HTML into error message
- Class parameter in get_avatar args doesn’t get added to output
- remove_filter function to unhook twentysixteen parent theme function
- Sticky – Featured Image
- Why am I losing image quality on my site?
- Replace image attributes for lazyload plugin on image elements with specific class
- Frontend Feature image upload not work
- Remove Featured Images from Posts Older Than a Certain Date
- Function the_content
- Set thumbnail from URL, by grabbing image in functions.php
- Dynamically adding Captions to images
- add if statement to the featured image
- How to resize image from import image url?
- How to crop image in WordPress with aspect ratio for any size of image
- How to add height and width dimensions automatically to archive descriptions
- How to overwrite image if it already exists – WordPress, Gravity form
- How Do I Prevent Featured Image Caption Displaying Above And Below Image
- How to force Cover block to use the full size image resolution