software, business, and fun
cambodia

Import Wordpress to Blogger

Going from blogger to wordpress is fairly well documented. The other way, importing all wordpress posts into blogger - not so much.

Recently I came across to need to take a wordpress blog, and basically turn it into the main point of contact across as many web2.0 sites as possible. RSS took care of most of it but they needed to also keep thier blogger blog as a mirror of the main wordpress blog. The post notification plugin takes care of future posts, but there were 2 years of archives.

To import the wordpress archives, I started with this script I found: wordpress2blogger

It needs some customizing before you use it. Set the desired blogger blog ID and author to yours, and the filenames are hardcoded. OS X ruby needed to

require ‘date’

as well. REXML didn’t like & signs in the post titles of the wordpress xml export, either, so I just manually changed them.

Other than that the script worked well. Blogger’s import is janky, but I got it to go finally.

NB: about 1/3 of what ended up in Blogger were junk entries inside ‘Uncatagorized.’ This could have been a problem in the wordpress export, or the blogger import. Who knows. They are easily clobbered though - just look inside the uncatagorized section in blogger.

NBB: Oh yeah, this was a fresh Blogger blog. I had to delete all posts and re-import a few times due to errors, etc. Be uber-careful if importing into a blogger with actual posts!

Thanks to caiwangqin for the original ruby code!

3 comments

1 Ordinary girl { 05.25.09 at 11:35 am }

I also want to shift my blog from Wordpress to Blogger…but I can’t understand a thing about scripts….is there any easier way for people like me? :(

2 Miles Scruggs { 05.26.09 at 1:30 am }

The script is great, only thing that doesn’t work is if you have more than 50 posts then you need to move his content = “” statement out of the loop or you will only get the last few posts of your blog.

3 JesusM { 01.26.10 at 11:59 pm }

Ordinary girl,A little round about way but I figured a way for normal people to import WP to Blogger

http://jesusmvw.blogspot.com/2010/01/i-figured-out-how-to-import-wordpress.html

Leave a Comment