{"id":2480,"date":"2014-08-17T15:12:20","date_gmt":"2014-08-17T15:12:20","guid":{"rendered":"http:\/\/johnjohnston.info\/blog\/?p=2480"},"modified":"2014-08-17T15:22:21","modified_gmt":"2014-08-17T15:22:21","slug":"another-migration-to-wordpress","status":"publish","type":"post","link":"https:\/\/johnjohnston.info\/blog\/another-migration-to-wordpress\/","title":{"rendered":"Another migration to WordPress"},"content":{"rendered":"<p><img decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/farm5.staticflickr.com\/4090\/5037541117_1ee6cb93ea.jpg\" alt=\"flickr photo by krystian_o Attribution License\" \/><\/p>\n<p style=\"word-wrap: break-word; width: 500px; font-size: 10px;\"><a href=\"http:\/\/www.flickr.com\/photos\/44667304@N02\/5037541117\">43\/365<\/a> by krystian_o Attribution License<\/p>\n<p><strong>TL:DR\u00a0<\/strong>I&#8217;ve just migrated my blog, please let me know if you find broken things and I&#8217;ll try and fix them.<\/p>\n<p>In the midst of the <a href=\"http:\/\/johnjohnston.info\/blog\/tag\/glowblogs\/\">glowblogs<\/a> migration project I am involved in professional I&#8217;ve been working on a wee migration of my own. For the past nine years I&#8217;ve been blogging using pivot (later <a title=\"PivotX - The Powerful Open Source Blog CMS\" href=\"http:\/\/pivotx.net\/\">pivotx<\/a>) this weekend I&#8217;ve moved to WordPress.<\/p>\n<h3>Why?<\/h3>\n<p>I started using pivot <a title=\"Sandaig Otters\u00a0-\u00a0The Weblog of Sandaig Primary School in Glasgow\" href=\"http:\/\/www.sandaigprimary.co.uk\/pivot\/archives\/archive_2004-m03.php\">back in 2004<\/a> as my class blog mainy because it did not need a database on the website and then that cost a bit more. I stuck to it as I found it easy to theme, and adapt for various classroom projects. It seemed fairly natural to use the same system myself.<\/p>\n<p><a title=\"Coming soon: Pivot 4 and Bolt! - PivotX\" href=\"http:\/\/pivotx.net\/archive\/2012\/09\/25\/coming-soon-pivot-4-and-bolt\/weblog\">Pivotx seems to be changing<\/a> but quite slowly, the promise of pivot 4 was from 2012.<\/p>\n<p>I&#8217;ve been attracted to several interesting WordPress technologies and plugins and now use it for <a href=\"http:\/\/edutalk.info\/\">edutalk<\/a>, <a href=\"http:\/\/scotedublogs.org.uk\/\">ScotEduBlogs<\/a> and <a title=\"106 drop in\" href=\"http:\/\/johnjohnston.info\/106\/\">my ds106 blog<\/a>. The feedwordpress plugin is of <a href=\"\/blog\/?s=feedwordpress\">especial interest<\/a>.<\/p>\n<p>A wish to eat my own dog food given I am promoting WordPress for glow.<\/p>\n<h3>How<\/h3>\n<p>Originally I though of turning the whole site\/domain to WordPress, to include my ds106 blog: <a href=\"http:\/\/johnjohnston.info\/106\/\">106 drop in<\/a>, but that looked a wee bit to tricky at the moment. I also have a bunch of straightforward html pages and experiments which I want to leave in place. Also there are a few challenges to moving the pivot posts to WordPress that seemed enough for now.<\/p>\n<p>There is not a simple pivotx imported for wordpress, I found <a href=\"http:\/\/www.filmvanalledag.nl\/?p=6033\">Migrating your blog from PivotX to WordPress | filmvanalledag<\/a> which looked as if it was a near fit, but missed out tags and comments. I&#8217;ve also been using disqus comments for my blog but wanted to move to standard ones without losing disqus.<\/p>\n<p>That filmvanalledag post gave me a great start with <code>example.org\/?feed=rss&amp;c=*&amp;n=10000<\/code> I used this to download the rss feed for all of my posts (&gt;800).<\/p>\n<p>I decided that the RSS import would lose all my tags and comments so went for another approach. I have a bit of <a title=\"EDUtalk Has Moved | John's World Wide Wall Display\" href=\"http:\/\/johnjohnston.info\/blog\/edutalk-has-moved\/\">experience with kludging<\/a> together a standard WordPress import from other things. This is probably of little interest to anyone but myself, but briefly I use <a href=\"http:\/\/supercard.us\">SuperCard<\/a> to creat a simple pseudo database of the rss add in the missing keywords by downloading them directly from the database and then manipulate it into a wordpress friendly format, for example getting the tag list like this:<\/p>\n<pre><code>uid,\"tag\",\"contenttype\",target_uid\r\n2533,\"assessment_is_for_learning\",\"entry\",1132\r\n2535,\"blogging\",\"entry\",1133\r\n2537,\"scotedublogs\",\"entry\",1135\r\n2536,\"newyear\",\"entry\",1135<\/code><\/pre>\n<p>Directly from the database and turning it into:<\/p>\n<pre>&lt;category domain=\"post_tag\" nicename=\"glowscotland\"&gt;&lt;![CDATA[glowscotland]]&gt;&lt;\/category&gt;\r\n&lt;category domain=\"post_tag\" nicename=\"glowscot\"&gt;&lt;![CDATA[glowscot]]&gt;&lt;\/category&gt;\r\n&lt;category domain=\"post_tag\" nicename=\"blogging\"&gt;&lt;![CDATA[blogging]]&gt;&lt;\/category&gt;\r\n&lt;category domain=\"post_tag\" nicename=\"wordpress\"&gt;&lt;![CDATA[wordpress]]&gt;&lt;\/category&gt;\r\n&lt;category domain=\"category\" nicename=\"wwwd\"&gt;&lt;![CDATA[wwwd]]&gt;&lt;\/category&gt;\r\n&lt;category domain=\"category\" nicename=\"jj\"&gt;&lt;![CDATA[jj]]&gt;&lt;\/category&gt;<\/pre>\n<p>For each post.<\/p>\n<p>I tested the import of my export on a local version of wordpress and also worked out some htaccess stuff.<br \/>\nMy old blog links were like this: <em>http:\/\/johnjohnston.info\/blog\/?e=2462<\/em> and wordpress expects this <code>http:\/\/johnjohnston.info\/blog\/?<strong>p<\/strong>=2462<\/code>.<\/p>\n<p>It took me a fair bit of googling and testing to get something that worked, although not quite correctly, <a title=\"johnjohnston.info\" href=\"http:\/\/johnjohnston.info\/?e=2464\">http:\/\/johnjohnston.info\/?e=2464<\/a> once I turned on pretty links goes to <em>http:\/\/johnjohnston.info\/blag\/what-is-openness\/?e=2464<\/em>, not removing the ?e=2464, ?p=2464 works properly. Once tested I created a new WordPress on the site, at \/blag, set it up, did a little more testing and have just moved it to \/blog after changing the urls in the General Settings Screen.<\/p>\n<p>The other main problem was that I was using disqus for my comments on the old blog and being a packrat I did not want to leave them behind. So I&#8217;ve added a bit of logic to this new blog where older posts will display the disqus form and any comments but going forward I&#8217;ll use the standard WordPress ones. I can&#8217;t see any way to import the old disqus comments into WordPress at this point.<\/p>\n<p>There are more things to fix, and I&#8217;ll try to pick these up as I go along. After that I&#8217;ll be looking to play around with some wordpress plugins and the like.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>43\/365 by krystian_o Attribution License TL:DR\u00a0I&#8217;ve just migrated my blog, please let me know if you find broken things and I&#8217;ll try and fix them. In the midst of the glowblogs migration project I am involved in professional I&#8217;ve been working on a wee migration of my own. For the past nine years I&#8217;ve been [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"mf2_syndication":[],"advanced_seo_description":"","jetpack_seo_html_title":"","jetpack_seo_noindex":false,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"webmentions_disabled_pings":false,"webmentions_disabled":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[6],"tags":[10,407,406,48,11],"post_format":[],"class_list":{"0":"post-2480","1":"post","2":"type-post","3":"status-publish","4":"format-standard","6":"category-wwwd","7":"tag-blogging","8":"tag-migration","9":"tag-pivotx","10":"tag-rss","11":"tag-wordpress","12":"kind-","13":"h-entry","14":"hentry"},"better_featured_image":null,"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p57zFQ-E0","jetpack_likes_enabled":false,"jetpack_sharing_enabled":true,"kind":false,"_links":{"self":[{"href":"https:\/\/johnjohnston.info\/blog\/wp-json\/wp\/v2\/posts\/2480","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/johnjohnston.info\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/johnjohnston.info\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/johnjohnston.info\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/johnjohnston.info\/blog\/wp-json\/wp\/v2\/comments?post=2480"}],"version-history":[{"count":5,"href":"https:\/\/johnjohnston.info\/blog\/wp-json\/wp\/v2\/posts\/2480\/revisions"}],"predecessor-version":[{"id":2485,"href":"https:\/\/johnjohnston.info\/blog\/wp-json\/wp\/v2\/posts\/2480\/revisions\/2485"}],"wp:attachment":[{"href":"https:\/\/johnjohnston.info\/blog\/wp-json\/wp\/v2\/media?parent=2480"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/johnjohnston.info\/blog\/wp-json\/wp\/v2\/categories?post=2480"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/johnjohnston.info\/blog\/wp-json\/wp\/v2\/tags?post=2480"},{"taxonomy":"post_format","embeddable":true,"href":"https:\/\/johnjohnston.info\/blog\/wp-json\/wp\/v2\/post_format?post=2480"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}