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?
- How does WP media uploader create the 3 different sized images, and how can I duplicate it
- Download an image from a webpage to the default uploads folder
- Users can’t upload images on frontend if they haven’t got access to the wp backend
- Create image formats with different qualities when uploading
- Protecting direct access to PDF and ZIP unless user logged in (without plugin)
- How to restrict images in v3.5 Media Library modal to only those from a specific post id?
- Why are double-periods (“..”) invalid in a WordPress image filename?
- How can I speed up a slow loading media library?
- What to do with unattached logos and header uploaded via native wordpress uploader?
- How to prevent upload of a multiple sizes of images
- Impose a Maximum Limit on Image height and width upload size
- Force wordpress to see uploads folder media
- Add item to media library from blob or dataUrl
- WP3.5 Media Uploader – how to make it accept multiple images?
- WordPress function: limit size, only jpg, jpeg, limit of uploaded files per account
- Add new media uploader at frontend for wp 3.5+
- resize images not crop
- Trying to add filename over image in Media Browser
- Upload image from a URL and assign it as a Featured Image to a Custom Post Type?
- Can I attach an image to a different post?
- Regenerate thumbnails after upload
- Adding a querystring to an image URL when clicking ‘insert into post’?
- Is there a limit on the number of attachments?
- Cannot upload .mp3 file to wordpress media
- HTTP Error when uploading files above 7mb unless using GD Image Editor
- WordPress Fancybox Resize Large Image
- Bulk edit of EXIF data for jpeg images uploaded in the media library?
- WordPress auto generates small medium and large of an image on upload, how can we guess their links?
- How to stop thumbnail generation from some images and different size thumbnail generate
- Error uploading image in WordPress
- Stop WordPress from generating redundant image size
- WordPress 4.9.8 Trying to add filename over image in Media Browser
- wordpress media upload given An error occurred in the upload. Please try again later
- Using wp_enqueue_media() with switch_to_blog() issue
- Media library only shows for admin. Doesn’t show editor or below [closed]
- Upload featured image from front end using media-upload.php
- Can’t generate thumbnail images
- Process uploads with phpThumb before generating thumbnails
- How to add multiple images to a custom post type without plugin [closed]
- Large image upload size (using timthumb.php
- Media Library Won’t Display Any Images
- When does WP resize an image file
- Images are not showing up in “Uploaded to this post”
- A link (not in the post) to download a specific PDF file
- More Fields & Media Upload
- Set different max upload size limits based on file type/extension
- Change Image folder Locations
- Correctly using the root directory for media uploads?
- Changing titles in Uploader for “Posts”
- adding image to post thumbnail from another server
- How to detect when a file has been uploaded?
- Cannot upload featured image to a custom post type
- Control resizing of uploaded images
- Multiple images are generated in WP-content in wordpress
- MIME types not recognized by media library
- WordPress Multisite: Images moved to /sites/1?
- Restrict Users to Only Edit Media Owned by Users in Their Role
- Bulk upload images in upload folder does not show in media library
- How can i link my featured image to be clicked and the file will be downloaded
- Private file system for attachments
- How to split my uploaded media into directories?
- Missing Images in Uploads Directory (Server Only)
- Metabox with file upload to custom directory
- How to force attachment size for every post
- Is it possible to upload multiple images via Media Library tab in Thickbox I’ve created?
- Transfered live site to new server and images are not showing
- Limit files uploaded per folder
- Link or button to open the media manager from frontend
- Bring up the media uploader on click
- Why some images are not allowed to be edited only for thumbnails?
- Generate and upload screenshot as featured image for user-submitted post
- Assign multiple categories to Media Library upload
- Is there a way to upscale a media library original image to the nearest whole pixel in WordPress?
- How can I add custom sizes for PDF thumbnails generation?