My first attempt to migrato from WP to LT was a mess, then i start to research from scratch.
1.- Migratin categories [simple script]
- Code: Select all
<?php
$con = mysql_connect("localhost","user","pass");
if (!$con)
{
die('Could not connect: ' . mysql_error());
}
mysql_select_db("db", $con);
$result = mysql_query("SELECT * FROM wp_terms");
while($row = mysql_fetch_array($result))
{
?>
<PRE>
INSERT INTO `lt_articles_categories` VALUES (<?=$row['term_id'];?>, '<?=$row['name'];?>', '', 1, '<?=date("Y-m-d h:i:$row[term_id]");?>', 1, 0, '<?=strtolower($row['name']);?>', '', '<?=$row['slug'];?>', 0, 0);
</PRE>
<?php
}
mysql_close($con);
?>
This generate a SQL script with the categories from WP ready to insert on the LifeType DB, its was prepared to be "user-categories" and not as general categories.
Then you can at least import the WP categories for now. Im researching now the post thing
My blog with the migrated categories: http://www.barrahome.org
