{"id":380,"date":"2021-02-17T11:16:00","date_gmt":"2021-02-17T11:16:00","guid":{"rendered":"https:\/\/pim.famnit.upr.si\/wp\/?p=380"},"modified":"2021-11-18T18:35:57","modified_gmt":"2021-11-18T18:35:57","slug":"migrating-s9y-to-wordpress","status":"publish","type":"post","link":"https:\/\/pim.famnit.upr.si\/wp\/?p=380","title":{"rendered":"Migrating s9y to WordPress"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\"><\/h2>\n\n\n\n<p>It took me some time to dig into it but finally managed to migrate. Serendipity is a nice blog platform that served me well for 10 years. But I couldn&#8217;t find a theme that would suite my needs and be responsive. So I decided to move. Here are the steps I took:<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>Download the WordPress version 4.1 from 2014 from <a href=\"https:\/\/wordpress.org\/download\/releases\/\">https:\/\/wordpress.org\/download\/releases\/<\/a>. This might not be necessary but I did it just in case since the migration code I found was from 2012. <\/li><li>Install WordPress.<\/li><li>Head to the <a href=\"https:\/\/github.com\/ShakataGaNai\/s9y-to-wp\">s9y-to-wp<\/a> plugin page on github to check the instructions. I did not follow them by the word as they are written for an even older version of WordPress.<\/li><li>In phpMyAdmin or in CLI run this SQL:<br><code>TRUNCATE wp_posts; <\/code><br><code>TRUNCATE `wp_postmeta`; <\/code><br><code>TRUNCATE `wp_term_relationships`; <\/code><br><code>TRUNCATE `wp_term_taxonomy`; <\/code><br><code>TRUNCATE `wp_comments`; <\/code><br><code>TRUNCATE `wp_commentmeta`; <\/code><br><code>DELETE FROM wp_terms WHERE wp_terms.term_id!=1;<\/code><br><\/li><li>I ssh-ed to my server to copy the plugin:<br><br><code>$ cd \/var\/www\/wp\/wp-content\/plugins<br>$ mkdir serendipity<br>$ cd serendipity <br>$ wget <a href=\"https:\/\/raw.githubusercontent.com\/ShakataGaNai\/s9y-to-wp\/master\/serendipity.php\">https:\/\/raw.githubusercontent.com\/ShakataGaNai\/s9y-to-wp\/master\/serendipity.php<\/a><\/code><br><\/li><li>In WordPress Dashboard go to Plugins -&gt; Installed plugins<\/li><\/ol>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>It took me some time to dig into it but finally managed to migrate. Serendipity is a nice blog platform that served me well for 10 years. But I couldn&#8217;t find a theme that would suite my needs and be responsive. So I decided to move. Here are the steps I took: Download the WordPress&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":462,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5,9],"tags":[],"class_list":["post-380","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-4-software-hints","category-8-software-interfaces"],"_links":{"self":[{"href":"https:\/\/pim.famnit.upr.si\/wp\/index.php?rest_route=\/wp\/v2\/posts\/380","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pim.famnit.upr.si\/wp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pim.famnit.upr.si\/wp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pim.famnit.upr.si\/wp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pim.famnit.upr.si\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=380"}],"version-history":[{"count":2,"href":"https:\/\/pim.famnit.upr.si\/wp\/index.php?rest_route=\/wp\/v2\/posts\/380\/revisions"}],"predecessor-version":[{"id":1829,"href":"https:\/\/pim.famnit.upr.si\/wp\/index.php?rest_route=\/wp\/v2\/posts\/380\/revisions\/1829"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/pim.famnit.upr.si\/wp\/index.php?rest_route=\/wp\/v2\/media\/462"}],"wp:attachment":[{"href":"https:\/\/pim.famnit.upr.si\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=380"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pim.famnit.upr.si\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=380"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pim.famnit.upr.si\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=380"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}