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?

  • Gran rights for users to edit posts. If you want to make posts open for editing only no need to migrate to wiki. – Alexey Sep 10 '11 at 12:13
  • I am interested in the ability to see the history of edits and I'm not sure if granting access to users to edit posts is good in case content gets lost or spammed and the content already exists so adding wiki functionality kind of means I will be adding another layer if you see what I mean. – user13004 Feb 10 '12 at 19:31
  • This is a user support question, involving user content, that would be better-directed to the official wordpress.org support forums. – Chip Bennett Feb 10 '12 at 19:35

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?

| improve this answer | |

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.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.