Export a wordpress blog to a wiki

I have a wordpress blog and the posts would better suit a wiki format becuase I want to make them open to editing.

Is there a way to conveniently export my posts so they can be imported by MediaWiki or another common Wiki application?

Topic wiki Wordpress

Category Web


The exported XML file is basically all of your posts in HTML format, with some wrapper XML to delineate each post. So, here is a three-step solution:

  1. Extract the HTML of each post from the exported XML file. Use regex, copy and paste, or some XML Transformation magic.
  2. Convert HTML to MediaWiki markup. Search Google for [ mediawiki import html ] or the HTML2wikipedia Home Page for more information.
  3. Import the resulting file(s) into your installation of MediaWiki. After using the tools above, you will likely have either MediaWiki markup or an XML file.
    • If you have MediaWiki markup, then you want to do a "Transwiki" import
    • If you have a Mediawiki XML file, then you want to do an "Upload" import

If you are using another wiki platform, then this will change slightly, since all the major wiki platforms have a similar approach to markup.

Happy coding! James

P.S. Sorry for the references without links. I'm new to StackExchange, so I could only post two hyperlinks.


Instead of exporting them to a dedicated Wiki platform, have you considered one of the plugins that add wiki functionality to an existing WordPress platform?

About

Geeks Mental is a community that publishes articles and tutorials about Web, Android, Data Science, new techniques and Linux security.