I incorporated Jim Carson's bug fixes into the script, and now for lack of a better version number, it's been moved up to version 1.2. So far, so good with the export. I tested it on my fiance's blog without any discernible problems. Obviously, if you encounter any bugs, please leave a good description of the bugs in the comments section.

i am dying to use this code on one of our bloggers personal blogs (he just started blogging on our MT Enterprise system this week) to grab his archives. i am very anxious about running this code on a personal Wodpress blog which has no db backups that i know of.
this script only makes an export and formats for MT--it does nothing to the existing Wordpress db or site, correct? it would seem silly to me if it did, i just have to cover myself 100% here.
seriously, dying to use this. considering Yahoo hosting takes away the export function on Wordpress AND i wouldn't have to do any MT formatting myself. thanks!
Yeah, it's a read-only script. It doesn't try to write anything to your database, so you should be good to go. I wrote it a while ago, but it seemed to work just fine on WordPress 2.1 when I tried that with my fiancee's blog just for the fun of it. If you have any problems, just post them somewhere on this blog.
Where exactly does this script need to be placed in my WP files so I can export into MT (and on to EE)?
It needs to go into the same directory as wp-config. Your directory structure should look like this:
wordpress/
--------->wp-config.php
--------->wp-export-mt.php
--------->wp-includes/
--------->----------->wpdb.php
If you encounter any bugs, you can post them here. Note: most of the testing for this has been with WordPress 2.0 and 2.1. I haven't had a chance to test the new 2.2 release yet.
That did it! Thanks! :)
Now if I can just get EE to take it, I'll be golden. :D
Mike, I just wanted to tell you the script works beautifully! I was able to get my WP files into MT format... and then imported them into EE with no troubles (once I quit being stupid LOL). Thanks again! :)
Glad to see that it worked for another user.
i'm confused, how would i use it? cuz i actually want to move my blog into EE, so now i'm thinking, migrate it to an mt script, and then to EE.
I've uploaded the file, now what?
Upload it into the same directory as the wp-config.php file in your installation of WordPress, then run wp-export-mt.php from your web browser to have it generate a Movable Type output file. Then follow the directions that EE provides you for importing the data.
Works great, thanks!
That did the trick. Thank you very much.
Is your script still downloadable somewhere? Got an error message when I tried. Really need this one though.
The download link has been fixed. Keep in mind that that one is for WordPress 2.2 and earlier. I never really debugged the script for WordPress 2.3 that much, and there have been some minor bugs with it.
Bear in mind that the Movable Type export format ***does not*** support tags. You will lose all of your tags when you export the data.
Thank you very much for this script! It was extremely helpful.
I exported from Wordpress 2.1.3 and came across a couple tips that others may find helpful:
- Add " where post_type='post' " to the end of the first select statement. I was only interested in exporting actual Posts in Wordpress.
- Update Line 44 to be " print wpautop($post[4]); ". This added the appropriate formatting so when I imported into my new CMS, everything looked as it should.