I'm currently working on importing an MovableType blog into WordPress. The blog has several thousand posts, and each post has an image associated with it.
The export file contains references to each image as follows (and as expected):
I've got all the images, and have rewritten all the links in the export file to use the new (local) location. However, the WordPres import process doesn't actually create attachments for the post, which I need.
So - what's the best way of doing this - right now I'm thinking about iterating through the set of posts, parsing out any image urls, and creating new posts:
- post_parent = the actual post
- post_type = attachment
post_guidthe image location reference? Or is the path to the image stored somewhere else?
Where is featured image set?
Is this the best way of doing this?
[I've tried using the cache-image plugin, but it borks on the number of posts / images]