First of all: add_image_size()
is to ADD a new image size into your WordPress installation.
Now, as you said:
I just want to resize my Image
You need to enter into your wp-admin panel. Then Settings » Media, and change the thumbnail size there.
Just change the thumbnail size there. Now use the plugin: Regenerate Thumbnails by Viper007Bond to make your new image sizes.
So, after then, if you use:
the_post_thumbnail( 'thumbnail' );
it will echo the new thumbnail image (120 x 120).
WARNING: Changing image sizes and regenerating new image sizes, doesn’t delete previously created sizes, just add new sized images into the server space. So the process is somewhat space-killing theory, if not smartly handled.
Related Posts:
- How to disable WordPress from creating thumbnails?
- set_post_thumbnail_size vs add_image_size
- the_post_thumbnail responsive srcset not populating with custom image size
- Set custom name for generated thumbnails
- New image size version only for the Featured Image file
- wp_get_attachment_image_src always returns full-sized image
- Add Title Attribute to WordPress Image the_post_thumbnail
- Can WordPress crop only the post thumbnails?
- Query the post which have a thumbnail
- Autogenerated Thumbnail compression depending on size
- How to use images uploaded with custom implementation of thickbox like the_post_thumbnail() functionality
- Media thumbnail for custom post inside post content
- Thumbnail and Featured Image With Fixed Sizes?
- List category posts – Thumbnails are not displaying
- Why am I getting errors in product.thumbnails.php? [closed]
- Is there a way to change a post’s thumbnail image(s)?
- how i can increase Featured thumbnails size?
- How check that there is post thumbnail feature image or not on wordpress?
- Force WordPress to strip/remove EXIF/IPTC metadata when resizing thumbnails
- If I Regenerate Thumbnails, would WordPress delete the existing Thumbnails and replace them with ‘new copies’?
- Is it possible to nest get_previous_post()?
- How to get cropped thumbnail source for custom post type
- Get ID of featured image using “get_post_thumbnail_id(the_ID())” – without printing to screen?
- How to offset thumbnails to the center?
- Sidebar Thumbs Squished?
- Aligning the thumbnail image
- Post thumbnail not working after regenerate
- How do get post thumbnail into plugin?
- “Medium” size image displayed instead of “thumbnail” in only one post, other posts are fine
- How to create resized versions of images added with wp_insert_attachment
- get_post_thumbnail_id() Doesn’t return value [closed]
- How To Add and Display Category Image
- get_the_post_thumbnail(‘thumbnail-name’) always returns empty string
- Can’t get post thumbnail to display in foreach loop
- Show posts image attachments
- Thumbnail is showing outside its div instead of inside it
- get_post_thumbnail does not display thumbnail
- Category page with thumb is ok but can’t do the same with tags
- how can I call a posts featured image in any template?
- Different thumbnails for index and article page
- Thumbnails not being generated for PDF files
- Thumbnail size problem Desktop vs Mobile site
- How do you code a featured image into an XML as a jpg link, instead of using a data-id number?
- How to change the format of thumbnails into wordpress theme?
- display div tag only if post has thumbnail
- Thumbnails are hard cropped not matter what
- Thumbnails regenerate wp_generate_attachment_metadata
- Featured image size always cropped bottom
- set_post_thumbnail() shows Unattached on backend under Media
- Allow ‘Set featured images’ to select multiple images
- Why wordpress doesn’t generate thumbnails?
- Force Regenerate Thumbnails Not Working
- Trouble Retrieving Thumbnail URL on Front-Page
- I would like my posts to pull my custom cropped thumbnail instead of creating its own thumbnail from Featured Image
- WordPress save thumbnail but don’t show it [closed]
- Automatic adding thumbnail to post
- Different thumbnail size than actual picture in post
- Where is the template from the_post_thumbnail()?
- Images thumbnail not cropping square
- oEmbed, thumbnails and wordpress
- the_post_thumbnail scaling not hard cropping
- how to pull images with no add_theme_support(‘post_thumbnails’)
- How to show a featured image as current?
- Importing featured image to posts, duplicates the image
- Regenerate thumbnails unexpected resolution (96 x 96)
- Change post thumbnail using front end post edit form
- Function to replace the url of featured images in the wordpress database?
- has_post_thumbnail gives always TRUE
- Displaying wordpress image size as array used for page builder
- Setting a default placeholder image WITHOUT link
- how to use first post image as thumbnail on wordpress
- Make the first image the post thumbnail without setting it as the featured image
- How to stop wordpress always displaying full-res images
- How to replace featured image upload option with the post media image option
- Can I insert the feature image inside the content, after any paragraph?
- Set Post Thumbnails in Percents
- get_the_post_thumbnail() returns nothing?
- How to bring files from the upload directory to the media gallery?
- Image with large file size not cropping
- What can I do if I set a gif as featured image? no thumbnail when i share on facebook
- Child Category Image
- How Do I Create A WordPress Secondary Featured Image Without A Plugin? [closed]
- Is wordpress compressing my images? if so, how to prevent it?
- Getting featured image with direct $wpdb within plugin
- WordPress get_categories & listing recent post thumbnail
- featured images twenty eleven theme
- Picture inserted in the post not showing in “Gallery”
- featured image is not showing
- Usage of add_image_size (for featured image)
- Smaller Size for featured images
- Featured image doesn’t appear in Blog index
- Remove Featured Image based on Date
- Echo recent posts each with its own respective featured image
- How to get post thumbnail to be equal to set media size
- Mass/Bulk assign featured images to posts
- How to modify responsive images in post thumbnails
- get_the_post_thumbnail() – Invalid argument supplied for foreach() in /wp-includes/post-thumbnail-template.php on line 64
- Get Post Thumbnail Outside of Loop
- get_post_thumbnail_id() not getting correct featured image after post edited
- the_ID & wp_get_attachment_image_src(the_ID(), “medium”) blank