the_post_thumbnail() allows you to set the size of the image you want to use, the default is thumbnail but you can override it to use any of the defined sizes or a custom size e.g.
the_post_thumbnail('medium');
the_post_thumbnail('large');
the_post_thumbnail('full');
the_post_thumbnail( array(980, 450) );
Images generated by WP use srcset to give image dimensions based on device width, you can disable this by using this answer
Related Posts:
- How do I get the avatar URL instead of an HTML IMG tag when using get_avatar?
- Image Upload from URL
- Is it possible set a featured image with external image URL
- Programmatically get images by URL and save in uploads folder
- Overide Gallery Default Link to Settings
- Why WordPress automatic cropping all my images?
- How to insert images into posts without using Add Media dialog
- How can I determine if a post has an image attachment?
- replace wp_get_attachment_image with my own function
- get images from post and make a zip
- Function to call the attachment image from post
- Default image for homepage when shared in social media
- Disable WordPress Big Image Size Scaling
- Filter Media Library by author or post_parent
- How to grab first image attached to post and display in RSS feed?
- How to add a link in a image’s caption?
- Frontend image uploading from edit profile page. (goldenapples)
- Hook for saving an image after editing
- How to store media files in subdomain
- Image display from custom field
- Include captions
- How to Change WordPress Image URLs
- How do I remove generated HTML around images in posts?
- A way to change image urls in post to cdn image url?
- What’s the proper way to use the get_image_tag filter?
- Get author custom image field URL to display on post page?
- Resizing image into thumbnail, small, medium and large options greyed out
- Keep image EXIF info after compressing original image?
- Set Post Image Using Shortcode
- Print specific image size in galley loop
- How can I attach hotlinked images in posts/pages within the same server?
- WordPress Image Attachment using remote image
- Image URLs stopped working due to Permalinks?
- Every admin only can see his uploaded images im editor
- How to open default wp image editor screen dynamically?
- Why are images created by WP larger than the original uploaded image?
- Default Image Link Type Setting not Working
- Fallback for missing srcset images
- max_srcset_image_width doesn’t work as intended
- Background image resets after time (XAMPP)
- Replace image caption with its title and description
- Custom thumbnail size of image when uploaded
- Removing featured image from gallery?
- Is it a good practice to change media settings on theme activation?
- Insert File URL Links to Existing Images that Were Not Originally Linked to Themselves
- Difficulties setting a maximum image width
- Filter for post_thumbnail: link to small src and add data-attribute [duplicate]
- Why does WP allow to view and media item as a page
- How to fix a missing image
- Function to remove all classes on images inserted into posts?
- How to get the real file type for images that do not have an extension
- Images don’t update after being edited
- Display post image in a size defined by add_image_size()
- IMG size is set to width=”964px” or “100%”, but is shown as “634px” in browser
- big trouble with javascript
- Prevent WP from wrapping html in caption shortcode after ‘image_send_editor’ filter is applied
- wordpress 4.22 does not generate thumbnail images
- How to implement CSS-defined images from bootstrap site in wordpress theme
- Hide image gallery in Woocommerce if NO image [closed]
- All 3?: Responsive resizing of images + image width of actual image for small images + max-width for all larger images
- What is the best way to associate multiple images to one page?
- How can I get url from image tag in feed with fetch_feed?
- Fetch the latest post with attachment image
- Fetching uploaded images using Link URL
- Can’t seem to see images on my machine but can on the server
- get rid of random string before an for an image path on wordpress
- Image modification
- Using srcsets in a custom block
- Plugin to select the custom image crop area
- Change Image URL on upload to some random number automatically
- Glitched page redirects to image
- Product Gallery Images to go into full size on Product Page
- How to Display Image Caption but Not Alt Text
- How to change background image
- I want to create a hero image with text and a button on my front page. How can I do this?
- Why image Thumbnail url is not displaying with custom size?
- get_image_tag & wp_get_attachment_image_attributes behaving strangely
- add_image_size limiting sizes (???)
- Automatically generate multiple image sizes for element
- Is it possible to remove spaces from existing images? [closed]
- Newly uploaded images are not updating in featured image
- How to have a specific image show up for everyone who comments?
- My feature images are showing up twice on the preview page
- Uploaded Images not re-sized to ( Thumbnail, Medium, and Large ) size
- Custom styling Insert Media window
- How do I embed youtube video via url in frontend posting
- Some images don’t get linked when setting link-to to media-image
- Create a Link to Larger Image from within list of smaller images
- php.ini -Theme-specific settings
- Display X images from a gallery in the sidebar
- Where do you upload images on a wordpress site?
- My image rotate 90 degree
- Have a rotating image covering body only on front page?
- Font size on image captions on mobile
- I moved WordPress to root now posts go to 404
- How do you add text to a carousel of images like here in this example
- How can we see which posts don’t have a featured image or it doesn’t exist anymore?
- Can’t manage to display an uploaded picture (uploaded from a custom button) in the front end
- How can I use an image from an external source without uploading it to the media library
- changing option for all posts