first post in the new journal
Wednesday, December 26th, 2007I’ve decided to redo ds.initiated.com entirely and I’m moving toward the future with a content management system here in WordPress. I’ll also close my livejournal, but I wanted to copy everything over from it. There is a tool included to do such a thing but it’s incomplete. It won’t do private stuff and it won’t import tags. Here are the lines to add to get that working… well it only does 1 tag and you have to have the same tags defined, before the import, in WordPress.
But ya.. the private thing was HUGE.
./wp-admin/import/livejournal.php
preg_match(‘|<security>(.*?)</security>|is’, $post, $post_status);
$post_status = strip_tags($post_status[0]);
if($post_status == ‘usemask’) $post_status = ‘private’;
if($post_status != ‘private’) $post_status = ‘publish’;
preg_match(‘|<taglist>(.*?)</taglist>|is’, $post, $post_category);
$post_category = array(get_cat_ID(strip_tags($post_category[0])));