In your theme’s functions.php file:
/* register new image size
* 200px wide and unlimited height
*/
add_image_size( 'wpse73058', 200, 9999, false );
In a template or the like:
if ( has_post_thumbnail() ) { the_post_thumbnail( 'wpse73058' ); }
Related Posts:
- How to Fix HTTP Error When Uploading Images?
- How to set featured image to custom post from outside programmatically
- Prevent WordPress from cropping GIF files
- media_sideload_image generates blank?
- the_post_thumbnail scaling not hard cropping
- Image uploader with “Set Featured Image” link on front end
- Use get/the_post_thumbnail with Custom Size & Crop
- Cropped thumbnail still displaying as full image
- Why does the Hard Crop option Scale?
- Forcing a user to crop the featured image in a certain aspect ratio
- How to both crop (with tool) and resize thumbnails having only a max width constrain?
- Server B handling add_image_size() differently than Server A
- Image with large file size not cropping
- WordPress image crop probems
- Cropping thumbnails to specific dimensions on front end post
- Using catch_the_image to get the thumbnail size
- Upload image through URL?
- Removing extra large generated images disables all crops
- Featured Image Thumbnail Sizing
- How do you remove hard coded thumbnail image dimensions?
- How do you get the post thumbnail size?
- Setting a post’s featured image from an embedded YouTube video
- Minimum Dimensions Requirement for Featured Image?
- the_post_thumbnail hard cropping not working no matter what
- Display Post Thumbnail Without Being Featured Image
- Featured Image of Video from oembed
- Modify featured image path to Amazon S3
- Retrieve featured image as object
- admin-ajax.php returns 0. How do I debug it and fix it?
- wp_get_attachment_url( get_post_thumbnail_id($post->ID) ); Getting thumb from wrong loop
- Featured image size in ADMIN panel?
- Featured image with the same height thumbs returns wrong thumb
- Set post thumbnail as background
- How to get the image sizes, in a function, as per the sizes mentioned in the media settings?
- How to Remove Two (Related) wp_postmeta Rows?
- Set featured image size for a custom post type
- How to change the height of featured image in Twenty Eleven child theme
- how to set featured image as facebook post thumbnail
- add_image_size not working with the_post_thumbnail
- If no featured image is set, default.png from core is shown
- Photo gallery with Featured Images
- Need clear explanation about medias/files/attchments
- How to handle and keep image quality of featured image uploads
- add_image_size() and uploading the exact size leaves 1×1 image in uploads
- post_thumbnail_html only for specific thumb size
- How to not show post_thumbnail from specific category for not logged users
- Archive show thumbnail
- Exclude featured image from gallery code stops Lightbox from working
- Post thumbnail not working after regenerate
- Media Gallery Upload photo incorrect way like glitch
- Generate image for newly added size
- Cleaning up bloated wp_postmeta table by removing multiple _thumbnail_id’s?
- specify size of post preview image (not post thumbnail)
- featured image inside post
- Featured image/thumbnail fallback placeholder image
- Add class to custom thumbnail
- How can i hide post without thumbnails/featured images from index pages?
- How to add gallery support in WordPress?
- get_the_post_thumbnail wordpress 3.5
- How do WP know an image is a post thumbnail
- Featured Image Link to next post?
- How to get a page’s featured image from a term slug (same name)
- Add extra fields to the post’s featured image
- WordPress showing image as thumbnail without using thumbnail
- Get post thumbnail to display favorites
- Unrestricted height thumbnails
- WordPress generated thumbnails
- How can I assign bloginfo path or thumbnail path to a variable and call it in markup?
- how to resize thumbnail image
- Use the_post_thumbnail as background image in LESS CSS [closed]
- Featured image for social sharing ot author archive page
- How can I specify the width and height of the Featured Image in TwentyTwelve theme?
- How to implement two separate featured images for each post/page
- Moved server, and WP now uses original images for all thumb sizes?
- WordPress stopped generating image thumbnails after changing hosting environment
- Thumbnail size problem Desktop vs Mobile site
- Cropped featured image
- My theme header is stuck on a low resolution image?
- Image size doesnt change via wp_get_attachment_image_src
- replace featured image from frontend
- Post thumbnail not working when previewing post
- Post thumbnail not displaying correct size
- How to add post thumbnail on posts on sites homepage?
- Crop an image after upload on custom account page
- Conditional: IF current author’s custom post has a post thumbnail
- IF statement to filter featured image article
- Featured image url
- How to add a class to figure tag for featured images?
- Post thumbnail won’t resize to fit
- Trouble Retrieving Thumbnail URL on Front-Page
- Featured Image not showing on wordpress hosted under Amazon AWS
- Featured Image / Post Thumbnail Cropping Query
- Using set_post_thumbnail inside save_post action gets overwritten
- How can I make thumbnails a display different size/position if the blog post was posted before a specific date?
- Display featured image metadata?
- get_post_thumbnail_id() not getting correct featured image after post edited
- the_ID & wp_get_attachment_image_src(the_ID(), “medium”) blank
- How to I remove Featured Image from the Posts/Category Lists?
- How do I change the size of the feature picture of a single post?
- Close featured image modal windows with JS