0

I am redoing some of my older blogs and I noticed with the new themes most of them take advantage of featured images which is fine. The problem is a lot of my older posts that was never set either because I did not use it or because it didn't exist.

Now I know of the featured thumbnail plugin the regenerates your posts and it grabs the images from your post and makes a thumbnail which is great and that works, but I have some posts where the images were not stored in the uploads folder where the plugin seems to be looking and those posts fail.

Any thoughts on how I can get these featured images without going through every single post manually?

1 Answer 1

0

You need to first download those external images then you can attach and set them as the post thumbnail.

To download and attach you can use the media_handle_sideload() function.

I wrote a plugin that will search through all your posts and pages and download and attach any external image into the media library. It also has the option of setting the first image as the featured image.

http://wordpress.org/extend/plugins/media-tools

1
  • Thank you so much this was exactly the tool I was looking for
    – David
    Commented May 19, 2013 at 10:15

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.