/wp2ghost

Convert wordpress XML export data into a JSON file that ghost can import

Primary LanguageJavaScript

wp2ghost Build Status

Convert wordpress XML export data (WordPress eXtended RSS or WXR) into a JSON file that ghost can import

NPM

##System requirement

  • requires nodejs 0.10 or higher

##Installation

  • Run npm install -g wp2ghost
    • For linux, might need sudo npm install -g wp2ghost instead

alternatively, you could

  • Download zip package and unpack.
  • Run npm install in package folder

##Conversion

  • Go to Wordpress - Tools - Export All, get the backup.xml
  • Run wp2ghost backup.xml, a 'backup.xml.json' file will be created in the same directory
    • run node wp2ghost backup.xml only if you used the second installation method (or nodejs wp2ghost backup.xml if you're using Debian)
  • Go to http://your-ghost-blog.com/ghost/debug, import the generated json file

##Known Issues

  • This tool may break some of the contents inside <code> and <pre> blocks, use as your own risk

##License

MIT