Can’t recommend Get the Image plugin (by Justin Tadlock) enough. It’s among the best out there, very well maintained and neat code — more importantly, it does what you need, while giving you a whole slew of options.
How does it pull images?
Looks for an image by custom field (one of your choosing).
If no image is added by custom field, check for an image using the_post_thumbnail() (WP 2.9’s new image feature).
If no image is found, it grabs an image attached to your post.
If no image is attached, it can extract an image from your post content (off by default).
If no image is found at this point, it will default to an image you set (not set by default).
Related Posts:
- 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?
- Display thumbnail only if requested size exists
- the_post_thumbnail hard cropping not working no matter what
- Can I refresh the thumbnails programmatically?
- the_post_thumbnail with lazyload JQ plugin
- Prevent WordPress from cropping GIF files
- Getting custom-sized featured image’s URL?
- Retrieve featured image as object
- 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
- Display the first image from a post in RSS feed
- Filter For Featured Image
- add_image_size and add_filter(‘image_size_names_choose’, ‘my_custom_image_sizes’) not working with wordpress 3.5.2
- 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
- Thumbnail Cropping with add_image_size?
- How to handle and keep image quality of featured image uploads
- post_thumbnail_html only for specific thumb size
- How to automatically resize animated GIFs used as Featured Images, without losing animation?
- Exclude featured image from attachment loop
- 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
- How to write conditional for custom checkbox in featured image meta box
- Generate image for newly added size
- Cleaning up bloated wp_postmeta table by removing multiple _thumbnail_id’s?
- Only Display Thumbnail if Larger Than
- How To Add and Display Category Image
- specify size of post preview image (not post thumbnail)
- featured image inside post
- get_post_thumbnail_id /set_post_thumbnail not working
- Featured image/thumbnail fallback placeholder image
- Add class to custom thumbnail
- Post thumbnail throwing size limit parameters in
- How can i hide post without thumbnails/featured images from index pages?
- How to add gallery support in WordPress?
- Wanting to change presentation from full post to featured image (post_thumbnail) only
- 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)
- Thumbnail is showing outside its div instead of inside it
- How do I get only the image URL from the_post_thumbnail()?
- Add extra fields to the post’s featured image
- Thumbnails in ACF Query Results
- 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?
- Get last post in category thumbnail
- 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?
- Can’t change image size from post “Show current page featured image in sidebar”
- How to implement two separate featured images for each post/page
- WordPress 3.3.1 not cropping featured image
- Using catch_the_image to get the thumbnail size
- 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?
- Thumbnail (featured image) and Media Library cleanup queries help needed
- Child Theme not overwriting Parent theme php file
- Image size doesnt change via wp_get_attachment_image_src
- replace featured image from frontend
- Thumbnails are hard cropped not matter what
- Post thumbnail not working when previewing post
- Post thumbnail not displaying correct size
- How to add post thumbnail on posts on sites homepage?
- Conditional: IF current author’s custom post has a post thumbnail
- How to undo thumbnail regenration
- 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
- trouble with the_post_thumbnail
- How can I make thumbnails a display different size/position if the blog post was posted before a specific date?
- Change background image in PHP
- Display featured image metadata?
- Strange image artifact on font-page thumbnail image