WordPress: Import Livejournal entries AND Comments into WordPress
I have made changes to WordPress's import-livejournal.php script
Previously, this script (shipped with WordPress v1.2.2 that I use) only allowed you to import the Livejournal entries into your WordPress site. With my changes, it now imports all comments from your Livejournal too.
GOOD NEWS: This works.
I exported over 100 entries with a total of over 100 comments from my livejournal blog to my WordPress blog at Logic2go.
Extends existing functionality, to read in all comments from Livejournal posts.
All commenting user URLs are auto-redirected to something like ...
Anonymous livejournal comment URL is left blank
(otherwise, LJ-user anonymous was getting all the hits).
LJ allows a user called anonymous?! Bad design, LJ.
Shows number of comments imported per post.
At the end of the import, shows stats on total posts and total comments imported in current session.
(I could extend this to show average comments per post, posts with highest, lowest and median number of comments).
Not Tested on WordPress ver 1.5 onwards. Also, I'm working on getting this to work on WordPress.com's hosted service. Keep checking, or send me an email if you really want it.
Will only work on posts not yet imported.
If the posts exists, you cannot simply use this script to import the comments. I recommend you remove the post from your WordPress, and re-import the post and comments as a pair.
Does not care about Private/other types of posts.
Assumes the document is correct XML.
I used ljArchive (By Erik Frey) to get the LJ Entries and Comments exported to XML.
Meaning: I haven't tested with anything else, just with ljArchive.
This changed script I provide should be copied on a working installation of WordPress
I recommend you either backup ALL your data on the WordPress installation or start with a fresh WordPress Installation like I did. This worked for me, but there are no gurantees that this will not f-up your installation. You are using this at your own risk.
Once copied, you will need follow the instructions for the regular import-livejournal.php file, found here
This source code belongs to the WordPress.org development team.
I only added a few lines of code and am hosting this version for others like me who installed WordPress but could not fully move from LiveJournal to Wordpress due to lack of exporting comments from Livejournal and importing into Wordpress.