You can add your own named image size by adding code to your functions.php.
Something in the line of
add_theme_support(‘post-thumbnails’);//might not be necessary
add_image_size(‘front-end-150’, 300, 300);
Now you should be able to use in your catch_that_image()
wp_get_attachment_image($post->ID, 'front-end-150')
for all newly uploaded images.
Your past images don’t have the front-end-150, so you might want to use the regenerate thumbnail plugin (http://wordpress.org/extend/plugins/regenerate-thumbnails/)
Good luck!
Related Posts:
- Prevent WordPress from cropping GIF files
- How to crop thumbnail height to auto with set width
- the_post_thumbnail scaling not hard cropping
- How to scale up image into thumbnail without distorting it?
- 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
- Featured Image Thumbnail Sizing
- How to get image title/alt attribute?
- How to set featured image to custom post from outside programmatically
- Generate Thumbnails only for Featured Images
- How to add post featured image to RSS item tag?
- How to resize images in wordpress without adding any compression or changing the color profile of the images, possible?
- What’s the difference between post thumbnails and featured images (if any)?
- What is your take: TimThumb vs. WordPress Thumbnails? The great debate [closed]
- How to change the naming of the resized image files
- How to get featured post title & image using JSON API?
- Display thumbnail only on the very first post in the loop?
- Allow user to manually set crop area of default/custom image sizes on upload [closed]
- Display child pages on a parent and child page using Featured Thumbnails
- How to display a post’s Featured Image with this code?
- Conditional to grab parent page thumbnail URL
- Show featured image in sidebar
- Featured Image VS Post_thumbnail — has_post_thumbnail lies?
- The Thumbnail aspect Ratio Issue
- Use Video as Featured Image
- Media thumbnail for custom post inside post content
- Why am I getting errors in product.thumbnails.php? [closed]
- Featured image always rendered with 198px of height?
- MultiPostThumbnail and the_post_thumbnail
- Featured image is not uploading
- how to use the new image size
- Image still attached to post even after removing it as featured image
- Create custom thumbnail size on existing posts
- thumbnails are getting clipped down, want to resize instead
- Multiple Post thumbnails (at least three)
- How to offset thumbnails to the center?
- Secondary Featured Image Function (post_thumbnail)
- Sidebar Thumbs Squished?
- Getting thubnails for previous posts
- Setting fallback (default) image to featured image block
- Featured Images Not Loading In Blog Archives
- how i can add title to my featured image?
- 2 image size for post
- Needs to add anchor tag in featured image to open in new tab
- Different Featured Images depending on context: loop or single view
- Featured image not working, because of custom user role?
- “Medium” size image displayed instead of “thumbnail” in only one post, other posts are fine
- Function to scan for image, attach it to post, set it as featured [duplicate]
- Static news page has for thumbnail the featured image of the first posts
- How to set post thumbnail size?
- Check if parent post is sticky on attachment page?
- get_the_post_thumbnail not working inside wp_get_nav_menu_items hook
- Adding in support thumbnail removes editor
- Retrieving featured image on static blog posts page
- How to allow the user to add an arbitrary amount of post thumbnails
- default post thumbnail and category if there is no thumbnail and category
- Conditional post thumbnail based on logged status and post tag
- How do I add thumbnail to current Prev and next buttons in posts?
- custom class and size for the_post_thumbail
- Check category before displaying featured image
- How to select which thumbnails sizes are displayed in srcset
- How can i find posts with duplicate featured images?
- Does delete_post_thumbnail() actually delete the image?
- How to change thumbnail default size?
- how can I call a posts featured image in any template?
- Custom header image, and content, on Posts Page in twentyeleven with Static Front Page
- Featured Image not shown and getting error “Object of class WP_Error could not be converted to int”
- “Use as featured image” not working , “Set Featured Image” hangs. GoDaddy Issue [closed]
- Extract featured image from link mentioned in blog post
- Create an instance of add_image_size
- custom image size not being fetched
- Resizing images failing
- How to add a new thumbnail size only to a certain custom post type?
- Featured images have disappeared in the Trending section only of my website
- Blog replace single post page featured image
- Removing extra large generated images disables all crops
- How to automatically add first image of post as thumbnail?
- featured image metabox not moving custom post type
- How to convert feature image as background image
- about featured image
- Moving Featured Images
- Add Play Icon on thumbnail overlay for video post types
- How do I Get WordPress Featured image from Frontend
- Featured Image, and Image in post
- Get Post thumbnail without width/height attribute
- if statement for featured images
- Thumbnail size according to width and height
- Custom image sizes are not used
- Import Dummy Content and Post Thumbnails
- Source problem for children page image
- Fetch first image URL from post and set as featured image URL
- How to set featured image from a variable
- How to stop WordPress from creating native thumbnails?
- Strange image artifact on font-page thumbnail image