I been working with featured images more lately and I been adding them to my posts as I go. However I have a bunch of older posts that do not have the featured image set and I want to use it for such things as wptouch etc.
So I have like 300 posts and to be honest I dont want to go into 300 posts and set the images manually.
IS there anyway either by plugin or code that you can code it where the featured images area will grab the first image in each post?
if the image is inserted (attached) into the post and not a external link:
You may want to also regenerate all attachment sizes (auto-create
$size
-d images from your older ones), so you don’t get browser-resized huge images…Here is the function:
and Here is how to use it: