As mentioned above, this link can help you on your way:
http://codex.wordpress.org/Post_Thumbnails
You need to add thumnail sizes to your functions.php like:
the_post_thumbnail(); // without parameter -> 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'); // Original image resolution (unmodified)
the_post_thumbnail( array(100,100) ); // Other resolutions
Then in your theme template within the loop where you call your image (for example loop.php), you need to change your image code into:
<?php if(has_post_thumbnail()) { the_post_thumbnail('thumbnail'); ?> // which will get you an image of 150x150
Related Posts:
- How do I use element instead of tags in WordPress post content having webP support?
- Show featured image next to post-teasers in Genesis Framework?
- Errors when uploading images in WP 3.5
- Set size for attachments
- Get all images in post and comments like Twitter before post title
- Issue where WP Featured Image will not display
- Remove Featured Image & All Media Uploaded to the Post
- preg_replace not removed “class”
- how to give multiple post thumbnails to a post
- How to display post title inside thumbnail?
- Only show featured image on exerpt and exclude images in post
- Site/Post preview is not working on all social media
- Delete media from the post but keep my featured image and post
- Thumbnails and images in the blog post are not loading
- Blog featured images disappeared on my homepage
- Center crop the feature image
- Add another feature image box
- How to show category image if no featured image is set?
- Set featured image on creating new post
- Post thumbnail height problem
- Import alt text in set_post_thumbnail
- website images getting corrupt automatically
- Add custom Attachment Display Setting for images
- Passing current cookies in wp_remote_get to get Draft Post Preview
- Delete the original big size image after upload and leave only 3 images crunched by media gallery
- Custom Field in Featured image for A particular post
- media_handle_upload for local files?
- How do I detach images from posts?
- upload image in a meta box
- VT-resize image and display it [duplicate]
- upload featured image from front end using wordpress add media button
- Posts Page Featured Image [closed]
- Enable commenting on front-end preview page for pending posts
- How do I programmatically add an image to a post?
- All my inserted images gets a link to the full image even if it is already full size image
- Post preview and oembed provider issue using polylang plugin with subdomains
- get custom image size
- How to get only text from wordpress post content?
- Get all images out of the posts content
- how to replace embedded “full” sized images within a post with the “large” ones
- How do I find which articles are missing a featured image in The WordPress database?
- Batch process: remove first image from post content
- How to access featured image?
- How to retrieve the postID in a “image_send_to_editor” hook function?
- Admin Notices don’t display on the admin screen for certain post
- Modify Image Source With The_Content Filter?
- Custom post preview without saving
- Load post attached images on a single page site with fancybox
- How can i add thumbnails images to particular post (using code not admin pannel) in wordpress
- I have a site where attachments in the wp_posts table have guid values of guid, how did this happen?
- Show only posts with images and a fixed amount of posts
- How would one change the default url structure of attachments?
- If statement to check if post has image
- Gather posts into a cart/lightbox and share with another user
- Get Post’s first image using Short-code
- What are the benefits of setting a “featured image” for a WP blog post?
- Admin – no Featured image choice in create new/page|post
- Post Image not displaying in category view
- update image path with words starting uppercase to lowercase chars
- How to only publish posts with image in it
- Uploading images in custom post form
- Make insterted image point to post url instead of attachment page
- How to allow multiple thumbnail upload for Posts?
- get_children returns older images
- How to remove text and retain in caption image using the_content function
- Post Title to featured Image ALT
- How to get all inline images in post content? [duplicate]
- Inserting Media to WordPress Posts
- Author Avatar as default first image
- Link post images to post
- WordPress as CMS: How to manage/handle images assigned to a post as full-sized background images in a slideshow?
- how can display a post on home screen without images
- attach several images to post + gallery
- Changing The Default Header POST Title and Description text by category in wordpress
- How to exclude native lazy loading from first image in post content?
- Rewrite image links from attachment id to attachment link
- Pinterest button shows image options from different posts
- Change the size of the featured image for post?
- Set featured image as hero image on each page
- Modified core/image rendering not showing in posts – only on pages
- Blog images not showing on homepage
- Display images of related posts
- Integrate video and iframe in a post type gallery
- How to get all posts in gallery post format template
- how to create other sizes of original image in one go wordpress uploads
- Stop images from being displayed on the front-end of the site
- how to chang preview of list of articles of one category?
- Relative Image Urls in Posts are starting from root – Not from WordPress Address (URL) at General Settings
- WordPress Media URLs?
- Preview own posts if logged in
- Retrieve post thumbnails
- Insert link to my thumbnail images
- thumbnail image path and file path for gallery thumbnail images
- Wanting to apply different featured images for each post
- Assign custom class to post content images
- Post thumbnail is not shown in wp-admin
- Displaying warning if no featured image has been set – Post Editor
- How enter custom post meta or custom field on box post list archive page?
- Is there any SEO impacts on unattached vs attached images for a post in WordPress?
- Front end post or photo or both