{"repo":"jonhoo/wp2ghost","free":true,"listed":false,"github":"https://github.com/jonhoo/wp2ghost","clone":"git clone https://github.com/jonhoo/wp2ghost.git","description":"Convert WordPress XML exports to Ghost JSON import files","language":"JavaScript","stars":61,"topics":["blog","conversion","ghost","wordpress","export","import"],"license":"MIT","category":"cli-tools","readme_excerpt":"This script will convert WordPress XML [exports][wpexport] ([WXR][wxr]) to the Ghost (1.x [for now][1x]) [JSON format][gjson]. This JSON file can then be directly imported using the Ghost debug interface. While there is a [WordPress plugin][wpghost] that will export to the Ghost format directly, it only seems to work some of the time, and users of WordPress.com will have a hard time using it seeing how WP.com doesn't allow plugins at all (in its free account). This is a simple command-line tool that takes a WordPress XML file as input and prints the corresponding Ghost JSON to standard out. It currently converts the following: - Posts: title, slug, content, page/post, featured, status, creation/publication date - Catgeories: name, slug, description (converted to tags) - Tags: name, slug WordPress authors are parsed, but not added to the output yet because Ghost currently only supports editing the primary user during imports. To run it, you need to have [NodeJS][node] installed (and maybe also [Python][python]). You can then just run: $ cd wp2ghost $ npm install $ GHOST VERSION=\" \" node bin/wp2ghost.js ghost.json If you prefer not to specify the Ghost version, you can run the command directly (it defaults to version 6.0): $ node bin/wp2ghost.js ghost.json Next, go to http://example.com/ghost, select Labs in the menu on the left, and import ghost.json . All your content should now show up! Happy migrating! [wpexport]: http://en.support.wordpress.com/export/ [wxr]: http://devtid","default_branch":null,"files":null,"tree":[],"storefront":"/r/jonhoo","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/jonhoo/wp2ghost/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}