Import images from an old WordPress blog to a new server (or local environment)! This simple script uses
wget to download the file and place it in a corresponding local
Wait, but why?
WordPress' import script is really dumb when it comes to images - even if you have the box checked to "download and import attachments", it won't actually download any images placed in your post content. This script does the download portion, but and you'll need to update the database separately.
- Update the
urlsarray with your list of URLs
- Execute the script from your WordPress root: