{"id":2629,"date":"2012-12-10T08:03:44","date_gmt":"2012-12-10T08:03:44","guid":{"rendered":"http:\/\/nycphantom.com\/journal\/?p=2629"},"modified":"2012-12-10T08:03:44","modified_gmt":"2012-12-10T08:03:44","slug":"finally-it-is-all-migrated-to-wordpress","status":"publish","type":"post","link":"http:\/\/nycphantom.com\/journal\/?p=2629","title":{"rendered":"Finally, it is all migrated to WordPress"},"content":{"rendered":"<p>I have finally spent about 3 hours time total to finish migrating my lifetype journal entries to WordPress.<\/p>\n<p>The next phase is the photo album, but that is not priority.<\/p>\n<p>Since online help fails me (broken links and missing scripts), I've done it manually via phpMyAdmin and mysql queries.<\/p>\n<p>Below are my summary:<\/p>\n<p>wordpress \u00a0 \u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0\u00a0 lifetype: plogdb<\/p>\n<p>ID\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0article_id<br \/>\npost_author\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0'1'<br \/>\npost_date &amp;<br \/>\npost_date_gmt\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0plog_articles -&gt; date<br \/>\npost_content\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0text<br \/>\npost_title\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0topic<br \/>\npost_status\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0'publish'<br \/>\ncomment_status,<br \/>\nping_status\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0'open'<br \/>\npost_name\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0topic lowercase and hyphenated<br \/>\npost_modified,<br \/>\npost_modified_gmt\u00a0\u00a0 \u00a0plog_articles -&gt; date<br \/>\npost_parent\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0'0'<br \/>\nmenu_order\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0'0'<br \/>\npost_type\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0'post'<br \/>\nguid\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0http:\/\/nycphantom.com\/journal\/?p=ID<br \/>\ncomment_count\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0plog_articles -&gt; num_nonspam_comments<\/p>\n<p>INSERT INTO `wp_posts`<\/p>\n<p>(article_id,post_author,post_content,post_title,post_status,comment_status,ping_status,post_name,<\/p>\n<p>post_parent,menu_order,post_type,guid)<br \/>\nSELECT ID,'1',text,topic,'publish','open','open',LCASE(REPLACE(REPLACE(REPLACE<\/p>\n<p>(topic,'\\'',''),'?',''),' ','-')),'0','0','post',CONCAT('http:\/\/nycphantom.com\/journal\/?p=',ID)<\/p>\n<p>FROM `plog_articles_text`<\/p>\n<p>UPDATE plog_articles p, wp_posts pp SET pp.post_date = p.date, pp.post_date_gmt = p.date,<\/p>\n<p>pp.post_modified = p.date, pp.post_modified_gmt = p.date, pp.comment_count =<\/p>\n<p>p.num_nonspam_comments WHERE pp.id = p.ID AND pp.id &lt;= 2567<\/p>\n<p>UPDATE `plog_article_categories_link` SET category_id = 37 WHERE category_id = 1<br \/>\nUPDATE `plog_article_categories_link` SET category_id = 38 WHERE category_id = 2<br \/>\nUPDATE `plog_article_categories_link` SET category_id = 36 WHERE category_id = 3<br \/>\nUPDATE `plog_article_categories_link` SET category_id = 39 WHERE category_id = 4<br \/>\nUPDATE `plog_article_categories_link` SET category_id = 33 WHERE category_id = 5<br \/>\nUPDATE `plog_article_categories_link` SET category_id = 40 WHERE category_id = 6<br \/>\nUPDATE `plog_article_categories_link` SET category_id = 41 WHERE category_id = 7<br \/>\nUPDATE `plog_article_categories_link` SET category_id = 42 WHERE category_id = 8<br \/>\nUPDATE `plog_article_categories_link` SET category_id = 51 WHERE category_id = 9<br \/>\nUPDATE `plog_article_categories_link` SET category_id = 43 WHERE category_id = 10<br \/>\nUPDATE `plog_article_categories_link` SET category_id = 34 WHERE category_id = 11<br \/>\nUPDATE `plog_article_categories_link` SET category_id = 44 WHERE category_id = 12<br \/>\nUPDATE `plog_article_categories_link` SET category_id = 45 WHERE category_id = 13<br \/>\nUPDATE `plog_article_categories_link` SET category_id = 35 WHERE category_id = 14<br \/>\nUPDATE `plog_article_categories_link` SET category_id = 46 WHERE category_id = 15<br \/>\nUPDATE `plog_article_categories_link` SET category_id = 47 WHERE category_id = 16<br \/>\nUPDATE `plog_article_categories_link` SET category_id = 48 WHERE category_id = 17<br \/>\nUPDATE `plog_article_categories_link` SET category_id = 49 WHERE category_id = 18<br \/>\nUPDATE `plog_article_categories_link` SET category_id = 50 WHERE category_id = 19<\/p>\n<p>UPDATE `plog_article_categories_link` SET category_id = category_id - 30<\/p>\n<p>INSERT INTO `wp_term_relationships` (object_id, term_taxonomy_id, term_order) SELECT article_id,<\/p>\n<p>category_id, '0' FROM `plog_article_categories_link`<\/p>\n<p>Emptied all comments in wordpress, since all spam but 1 testing comment.<\/p>\n<p>INSERT INTO `wp_comments` (comment_ID, comment_post_ID, comment_author, comment_author_email, comment_author_url, comment_author_IP, comment_date, comment_date_gmt, comment_content, comment_karma, comment_approved, comment_parent, user_id) SELECT id, article_id, user_name, user_email, user_url, client_ip, date, date, text, '0', '1', '0', '0' FROM `plog_articles_comments`<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I have finally spent about 3 hours time total to finish migrating my lifetype journal entries to WordPress. The next phase is the photo album, but that is not priority. Since online help fails me (broken links and missing scripts), &hellip; <a href=\"http:\/\/nycphantom.com\/journal\/?p=2629\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-2629","post","type-post","status-publish","format-standard","hentry","category-technical"],"_links":{"self":[{"href":"http:\/\/nycphantom.com\/journal\/index.php?rest_route=\/wp\/v2\/posts\/2629","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/nycphantom.com\/journal\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/nycphantom.com\/journal\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/nycphantom.com\/journal\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/nycphantom.com\/journal\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2629"}],"version-history":[{"count":1,"href":"http:\/\/nycphantom.com\/journal\/index.php?rest_route=\/wp\/v2\/posts\/2629\/revisions"}],"predecessor-version":[{"id":2630,"href":"http:\/\/nycphantom.com\/journal\/index.php?rest_route=\/wp\/v2\/posts\/2629\/revisions\/2630"}],"wp:attachment":[{"href":"http:\/\/nycphantom.com\/journal\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2629"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/nycphantom.com\/journal\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2629"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/nycphantom.com\/journal\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2629"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}