The default image sizes of WordPress are “thumbnail”, “medium”, “large” and “full” (the size of the image you uploaded). These image sizes can be configured in the WordPress Administration Media panel under Settings > Media. This is how you can use these default sizes with the_post_thumbnail():
the_post_thumbnail(); // without parameter -> 'post-thumbnail'
the_post_thumbnail( 'thumbnail' ); // Thumbnail (default 150px x 150px max)
the_post_thumbnail( 'medium' ); // Medium resolution (default 300px x 300px max)
the_post_thumbnail( 'large' ); // Large resolution (default 640px x 640px max)
the_post_thumbnail( 'full' ); // Full resolution (original size uploaded)
the_post_thumbnail( array(100, 100) ); // Other resolutions
for more information to see https://developer.wordpress.org/reference/functions/the_post_thumbnail/
Related Posts:
- Redimension thumbnail crop without creating new images
- No Thumbnails Generated
- Which filters or actions to use after a media upload and delete?
- How to call WP3.5 Media Library manager?
- Convert uploaded PNG to JPEG automatically
- add_image_size creating lots of images (of various sizes)
- WordPress won’t generate image sizes for certain images
- Thumbnails produce unwanted gray pixels on white background [closed]
- Site icons with alpha channel for self-hosted WordPress blog network
- Can I stop wordpress generating media sizes
- add_image_size() and uploading the exact size leaves 1×1 image in uploads
- Media Gallery Upload photo incorrect way like glitch
- Attach Thumbnail Generated from Video Upload as Featured Image for the Video
- WordPress Media Library showing wrong preview size?
- Redirect to another page using contact form 7? [closed]
- Resize existing library images
- Issue with images which have no sizes available
- Thumbnail images missing in WP media library
- What is the URL pattern for image thumbnails + sizes?
- Dynamically determine the width and height of a image file to be cropped & uploaded AFTER form submission given fixed aspect ratio
- Removing extra large generated images disables all crops
- Images uploaded via Gutenberg image block are cropped
- get the post thumbnail returns the full size
- Is there a way to force Featured image to show as attachement?
- Question regarding the file path for media_sideload_image and wp_upload_dir()
- How to Fix HTTP Error When Uploading Images?
- Trigger refresh for new media manager in 3.5
- Physical organization of wordpress media library (Real Media Library plugin)
- How to generate thumbnails when needed only?
- How to Require a Minimum Image Dimension for Uploading?
- Extend Media Library
- How does WP media uploader create the 3 different sized images, and how can I duplicate it
- WordPress 3.5: Setting custom “full URL path to files” in the Media Library?
- Minimum Dimensions Requirement for Featured Image?
- Upload images to remote server
- How to disable generation of default image sizes for some custom post types?
- Reject upload of wrong-sized images using the Media Uploader
- How to delete resized (cropped) image uploads and prevent future resizing?
- How to show all available images in WP’s media library when using the Polylang plugin?
- Upload post thumbnail from the front end
- Download an image from a webpage to the default uploads folder
- Give users a maximum upload capacity; limit the number of files a user can upload OR limit the number of files per upload
- Media upload finished hook
- Uploaded images don’t show in Media Library if there are special characters in IPTC Keywords
- Users can’t upload images on frontend if they haven’t got access to the wp backend
- How can I batch delete all unattached images with WP-CLI or other automated process?
- Create image formats with different qualities when uploading
- Is there a hook which fires after all thumbnails are generated?
- Use a separate custom table (not posts) to handle file upload data
- Media not actually deleted on disk when click “Permanent Delete”
- Protecting direct access to PDF and ZIP unless user logged in (without plugin)
- How to wp_upload_bits() to a sub-folder?
- How to restrict images in v3.5 Media Library modal to only those from a specific post id?
- PNG with transparent background turns black when uploaded and resized
- “Add Media” only shows “Full Size” under Attachment Display Settings
- Differentiate Featured Image from Post Images upon Upload
- Where do the favicons for Media Files come from
- WP 3.5 media manager – how to create a working gallery frame
- What might cause a POST to wp-admin/async-upload.php to return JSON >and< HTML?
- Modify featured image path to Amazon S3
- Cropped featured image replaces original image in gallery
- Is it possible to trigger some JavaScript when Media Popup is opened?
- Disable media library tab for non admins in uploader screen
- Settings in ‘Media > Settings’ is ignored when inserting images
- There’s a way to scale media (images) at 50%?
- How to register images uploaded via FTP in media library?
- Why are double-periods (“..”) invalid in a WordPress image filename?
- How can I speed up a slow loading media library?
- Password protect some uploaded files, so only logged-in users can view them
- What to do with unattached logos and header uploaded via native wordpress uploader?
- How to protect uploads in multisite if user is not logged in?
- Way to force media uploader use custom image size
- How to prevent upload of a multiple sizes of images
- How can I prevent uploading bmp image?
- Impose a Maximum Limit on Image height and width upload size
- Force wordpress to see uploads folder media
- Append button to WordPress Image Details modal
- Change URLs for static content
- uploading files to the uploads folder via ftp
- Add item to media library from blob or dataUrl
- How can I add the “Use as featured image” to a custom metabox?
- How to get the image url in the input box from media library?
- Use Media Library to manage galleries like Nextgen (with folders, albums, collections, tags, categories, terms…)
- Remove upload_files capability from a role but allow role to manage an avatar image
- WP3.5 Media Uploader – how to make it accept multiple images?
- Create custom tab in WordPress 5 media upload
- Restrict file uploads by extension?
- WordPress function: limit size, only jpg, jpeg, limit of uploaded files per account
- Add new media uploader at frontend for wp 3.5+
- How to Check Disk Space used by Media Library
- resize images not crop
- Trying to add filename over image in Media Browser
- Displaying a featured image (only img url) as the img src?
- How to upload imagick resource to media in wordpress
- How to change the image size in new Media Uploader (ie use medium vs thumbnail)
- Insert Featured image from Feed
- Upload image from a URL and assign it as a Featured Image to a Custom Post Type?
- Add suffix to filename of uploaded images
- Can I attach an image to a different post?
- Plugin to Import Dropbox Files into Media Folder from the Cloud [closed]