<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Wordpress on Wimpy's World</title><link>https://blog.wimpys.world/tags/wordpress/</link><description>Recent content in Wordpress on Wimpy's World</description><generator>Hugo -- gohugo.io</generator><language>en-gb</language><managingEditor>martin@wimpress.com (Martin Wimpress)</managingEditor><webMaster>martin@wimpress.com (Martin Wimpress)</webMaster><lastBuildDate>Mon, 22 Oct 2012 17:13:43 +0000</lastBuildDate><atom:link href="https://blog.wimpys.world/tags/wordpress/rss.xml" rel="self" type="application/rss+xml"/><item><title>Migrating Wordpress to Nikola</title><link>https://blog.wimpys.world/posts/migrating-wordpress-to-nikola/</link><pubDate>Mon, 22 Oct 2012 17:13:43 +0000</pubDate><author>martin@wimpress.com (Martin Wimpress)</author><guid>https://wimpysworld.com/posts/migrating-wordpress-to-nikola/</guid><description>&lt;p&gt;I recently migrated three sites from a self hosted &lt;a href="http://www.wordpress.org"&gt;Wordpress&lt;/a&gt;
installation to &lt;a href="http://getnikola.com/"&gt;Nikola&lt;/a&gt;. Nikola is a static
site and blog generator written in &lt;a href="http://www.python.org"&gt;Python&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Although I use both &lt;a href="http://docutils.sourceforge.net/rst.html"&gt;reStructuredText&lt;/a&gt;
and &lt;a href="http://daringfireball.net/projects/markdown/"&gt;Markdown&lt;/a&gt;, I decided
to migrate my Wordpress content to Markdown.&lt;/p&gt;
&lt;p&gt;This is by no means an exhaustive Wordpress to Nikola migration guide but it
should provide enough clues for anyone else wanting to do the same. The
following was done on Ubuntu 10.04 LTS.&lt;/p&gt;
&lt;p&gt;Export the Wordpress content. &lt;code&gt;Tools -&amp;gt; Export -&amp;gt; All Content&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;Use &lt;code&gt;xmllint&lt;/code&gt; to find any errors in the Wordpress XML export and fix them.&lt;/p&gt;
&lt;h2 id="nikola-5"&gt;Nikola 5&lt;/h2&gt;
&lt;p&gt;&lt;strong&gt;UPDATE!&lt;/strong&gt; I&amp;rsquo;ve added the instructions for install Nikola 5 since fist
publishing this post.&lt;/p&gt;
&lt;p&gt;Install Nikola 5 in a &lt;code&gt;virtualenv&lt;/code&gt; using
&lt;a href="http://www.doughellmann.com/projects/virtualenvwrapper/"&gt;virtualenvwrapper&lt;/a&gt;.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nb"&gt;cd&lt;/span&gt; ~
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;sudo apt-get install libxslt1-dev libxml2-dev libjpeg62-dev python2.6-dev
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;wget http://nikola-generator.googlecode.com/files/nikola-5.zip
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;unzip ~/nikola-5.zip
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;mkvirtualenv -i markdown -r ~/nikola-5/requirements.txt --use-distribute nikola-5
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nb"&gt;cd&lt;/span&gt; ~/nikola-5
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;python setup.py install
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h2 id="nikola-4"&gt;Nikola 4&lt;/h2&gt;
&lt;p&gt;Install Nikola 4.0.3, in a &lt;code&gt;virtualenv&lt;/code&gt; using
&lt;a href="http://www.doughellmann.com/projects/virtualenvwrapper/"&gt;virtualenvwrapper&lt;/a&gt;.
Nikola 4.0.3 spits deprecation warnings with &lt;code&gt;doit&amp;gt;=0.16.1&lt;/code&gt; hence the use of
&lt;code&gt;sed&lt;/code&gt;.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nb"&gt;cd&lt;/span&gt; ~
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;sudo apt-get install libxslt1-dev libxml2-dev libjpeg62-dev python2.6-dev
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;wget http://nikola-generator.googlecode.com/files/nikola-4.0.3.zip
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;unzip ~/nikola-4.0.3.zip
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;sed -i &lt;span class="s1"&gt;&amp;#39;s/&amp;gt;=0\.16/==0\.16/&amp;#39;&lt;/span&gt; ~/nikola-4.0.3/requirements.txt
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;mkvirtualenv -i markdown -r ~/nikola-4.0.3/requirements.txt --use-distribute nikola
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nb"&gt;cd&lt;/span&gt; nikola-4.0.3
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;python setup.py install
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Import the Wordpress content.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nb"&gt;cd&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;nikola import_wordpress wordpress.linted.xml
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Use &lt;a href="https://github.com/aaronsw/html2text"&gt;html2text&lt;/a&gt; to convert the HTML
markup in &lt;code&gt;new_site/posts/*.wp&lt;/code&gt; to &lt;em&gt;real&lt;/em&gt; Markdown.&lt;/p&gt;
&lt;p&gt;Use the &lt;a href="http://wordpress.org/extend/plugins/disqus-comment-system/"&gt;Disqus Wordpress Plug-in&lt;/a&gt;
to migrate Wordpress comments to &lt;a href="http://www.disqus.com"&gt;Disqus&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;If required, generate a list of the Wordpress URLs for Nikola redirections.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;grep &lt;span class="s2"&gt;&amp;#34;&amp;lt;link&amp;gt;&amp;#34;&lt;/span&gt; wordpress.linted.xml &lt;span class="p"&gt;|&lt;/span&gt; sed -e &lt;span class="s1"&gt;&amp;#39;s/&amp;lt;link&amp;gt;//g&amp;#39;&lt;/span&gt; -e &lt;span class="s1"&gt;&amp;#39;s/&amp;lt;\/link&amp;gt;//g&amp;#39;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;I migrated from several sub-domains to one top-level and the Wordpress URLs
I was using can&amp;rsquo;t be persevered with Nikola. I use a combination of Nikola
redirects and nginx configuration to handle the re-directions.&lt;/p&gt;
&lt;p&gt;At this point the bulk of the migration is done. I tweaked the Nikola &lt;code&gt;conf.py&lt;/code&gt;
to use &lt;code&gt;.md&lt;/code&gt; files instead of &lt;code&gt;.wp&lt;/code&gt;, added some assets to the Nikola &lt;code&gt;files&lt;/code&gt;
directory, configured deployments and updated the theme. I also decided to axe
some obsolete blog posts.&lt;/p&gt;
&lt;p&gt;Migrating to Disqus has been very frustrating and although my comments have
now been migrated the Migrate Threads has yet reflect the new URLs of my posts.
There is no visibility of what, if anything, is happening when you execute the
Disqus URL Mapper. This is not a Nikola issue.&lt;/p&gt;
&lt;p&gt;I am extremely happy with Nikola itself and it has proved itself flexible and
I can now capture my notes in a familiar format and in a familiar environment,
Python. Next steps are to integrate Nikola with Dropbox so I can publish from
any device with ease and add a search facility.&lt;/p&gt;</description><summary>From a dynamic Wordpress site to static Nikola site</summary></item><item><title>Wordpress Search Engine Optimisation</title><link>https://blog.wimpys.world/posts/wordpress-search-engine-optimisation/</link><pubDate>Mon, 26 Jan 2009 15:37:55 +0000</pubDate><author>martin@wimpress.com (Martin Wimpress)</author><guid>https://wimpysworld.com/posts/wordpress-search-engine-optimisation/</guid><description>&lt;p&gt;I manage several websites at work and have therefore learned something about
search engine optimisation (SEO). Our main site at work uses
&lt;a href="http:/www.wordpress.org"&gt;Wordpress&lt;/a&gt; as the content manager, which has good
SEO features by default. Last week we launched a new website and I also
refreshed the other sites, in so doing I found a great article discussing how
to fully SEO your Wordpress site. It is a good read even if you don&amp;rsquo;t use
Wordpress, but for those of you that do, it recommends a suite of plugins that
do all the hard work for you.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="http://yoast.com/articles/wordpress-seo/"&gt;Wordpress SEO - The definitive guide to high rankings for your Blog&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</description><summary>Wordpress plugins that help automate SEO</summary></item><item><title>Hacking WordTwit into WordDent</title><link>https://blog.wimpys.world/posts/hacking-wordtwit-into-worddent/</link><pubDate>Fri, 23 Jan 2009 18:24:20 +0000</pubDate><author>martin@wimpress.com (Martin Wimpress)</author><guid>https://wimpysworld.com/posts/hacking-wordtwit-into-worddent/</guid><description>&lt;p&gt;I have quickly forked &lt;a href="https://wordpress.org/plugins/wordtwit/"&gt;WordTwit&lt;/a&gt; into
WordDent. WordDent is a Wordpress plugin that utilizes the Twitter API to
automatically push a published post to your &lt;a href="http://identi.ca"&gt;Identi.ca&lt;/a&gt;
account as a dent. It allows all your Identi.ca contacts to keep up to date
with your blog postings. I&amp;rsquo;m still just testing that WordDent works
correctly. I&amp;rsquo;ll find out if the nice people over at
&lt;a href="http://www.bravenewcode.com"&gt;Brave New Code&lt;/a&gt; will agree to me releasing
WordDent since I can&amp;rsquo;t fine any license details for WordTwit.&lt;/p&gt;</description><summary>Automatically post Wordpress blog notification to Identi.ca</summary></item><item><title>Search engine verification and sitemaps</title><link>https://blog.wimpys.world/posts/search-engine-verification-and-sitemaps/</link><pubDate>Sun, 18 Jan 2009 23:19:12 +0000</pubDate><author>martin@wimpress.com (Martin Wimpress)</author><guid>https://wimpysworld.com/posts/search-engine-verification-and-sitemaps/</guid><description>&lt;p&gt;I finally got around to verifying my websites with the Google, Yahoo! and MSN
Live search engines. I&amp;rsquo;ve also setup sitemaps for my websites too. I&amp;rsquo;ve done
this for the websites at work but couldn&amp;rsquo;t be arsed to do it for my own sites
until today.&lt;/p&gt;
&lt;p&gt;To find out why you want sitemap enable your sites read the
&lt;a href="http://en.wikipedia.org/wiki/Site_map"&gt;Sitemap&lt;/a&gt; page at Wikipedia. In order to
register your sitemaps with the major search engines you&amp;rsquo;ll need to setup
accounts for &lt;a href="https://www.google.com/webmasters/tools/"&gt;Google Webmaster Tools&lt;/a&gt;,
&lt;a href="http://webmaster.live.com/webmaster/"&gt;MSN Live Webmaster Tools&lt;/a&gt; and
&lt;a href="https://siteexplorer.search.yahoo.com/"&gt;Yahoo! Site Explorer&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;You&amp;rsquo;ll then need to &lt;em&gt;verify&lt;/em&gt; your site(s) with each of the search engines, they
provide details about how to do this but it typically requires that you put a
meta tag in your page header. Once you&amp;rsquo;ve verified your site(s) it&amp;rsquo;s time to
create a &lt;code&gt;sitemap.xml&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;If you have a Wordpress blog adding sitemap support is easy, just use the
&lt;a href="http://wordpress.org/extend/plugins/google-sitemap-generator/"&gt;Google XML Sitemaps&lt;/a&gt;
plugin. This re-builds &lt;code&gt;sitemap.xml&lt;/code&gt; when you update posts, pages, comments etc.
It also notifies all the relevant search engines that content has changed on
your site. Very useful indeed. If you need to create your sitemap by hand, or
better yet script its creation, then read &lt;a href="http://www.sitemaps.org/"&gt;sitemaps.org&lt;/a&gt;
for the protocol spec.&lt;/p&gt;</description><summary>Verify websites with search engines and submit sitemaps for indexing</summary></item><item><title>Blog post notifications to Twitter</title><link>https://blog.wimpys.world/posts/blog-post-notifications-to-twitter/</link><pubDate>Sat, 17 Jan 2009 10:45:12 +0000</pubDate><author>martin@wimpress.com (Martin Wimpress)</author><guid>https://wimpysworld.com/posts/blog-post-notifications-to-twitter/</guid><description>&lt;p&gt;I&amp;rsquo;ve just installed &lt;a href="http://www.bravenewcode.com/wordtwit/"&gt;WordTwit&lt;/a&gt; on my
blog. WordTwit keeps track of when you publish new posts, and automatically
informs all of your followers by pushing out a Twitter tweet. All links are
automatically converted to tiny URLs.&lt;/p&gt;</description><summary>Send new Wordpress blog notifications to Twitter</summary></item><item><title>BloGTK, a weblog client for Linux</title><link>https://blog.wimpys.world/posts/blogtk-a-weblog-client-for-linux/</link><pubDate>Fri, 11 Jan 2008 13:44:07 +0000</pubDate><author>martin@wimpress.com (Martin Wimpress)</author><guid>https://wimpysworld.com/posts/blogtk-a-weblog-client-for-linux/</guid><description>&lt;p&gt;I have been meaning to setup a weblog client for a while now. I have tested a
couple of blog clients and have settled on &lt;a href="http://blogtk.sourceforge.net/"&gt;BloGTK&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;It has a simple user interface but comprehensive features, although I did need
to define a few Custom Tags before the editor supported all the formatting
options I wanted. Setting up BloGTK is very simple for Ubuntu and Debain users
requiring an &lt;code&gt;aptitude install blogtk&lt;/code&gt; to get it installed and the following
settings will connect to a Wordpress blog.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Server URL: &lt;code&gt;http://blog.example.org/xmlrpc.php&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Account: &lt;em&gt;Your Username&lt;/em&gt;&lt;/li&gt;
&lt;li&gt;Password: &lt;em&gt;Your Password&lt;/em&gt;&lt;/li&gt;
&lt;li&gt;Blogging System: &lt;em&gt;Moveable Type&lt;/em&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Now I can blog directly from my desktop, I am hoping it will encourage me to
post more often.&lt;/p&gt;</description><summary>Graphical blogging client for GNOME</summary></item><item><title>Flexion.Org is re-activated!</title><link>https://blog.wimpys.world/posts/flexion.org-is-re-activated/</link><pubDate>Sat, 22 Sep 2007 11:22:43 +0000</pubDate><author>martin@wimpress.com (Martin Wimpress)</author><guid>https://wimpysworld.com/posts/flexion.org-is-re-activated/</guid><description>&lt;p&gt;I have finally got around to re-activating this website after many months of
neglect. The first thing to do was move away from &lt;a href="http://jaws-project.com/"&gt;Jaws&lt;/a&gt;.
Sadly, my Jaws installation is broken in a way that newer Jaws releases refuse
to upgrade it.&lt;/p&gt;
&lt;p&gt;I did some research and decided to migrate to &lt;a href="http://www.wordpress.org"&gt;Wordpress&lt;/a&gt;
since it caters for all the essentials I require either in the core
functionality or via plugins. Plus I can integrate with some other stuff I want
to use.&lt;/p&gt;
&lt;p&gt;The migration to Wordpress was made all the easier thanks to the excellent &lt;a href="http://trac.wordpress.org/ticket/4184"&gt;Jaws import plugin&lt;/a&gt;
I found on the Wordpress trac. However, I decided not to use the Textile plugin
to preserve the Jaws formatted text. Instead I chose to manually clean up some
of the old entries so I could stick with the TinyMCE editor long term.&lt;/p&gt;
&lt;p&gt;I am happy with Wordpress thus far and look forward to getting some plugins
going and picking up a new theme over the coming days and weeks.&lt;/p&gt;</description><summary>Jaws dropped in a move to Wordpress</summary></item></channel></rss>