wp-yaml
Node utility for converting YAML data to importable Wordpress XML.
To get started:
npm install -g wp-yaml
To transform a YAML file, pass a file path:
wp-yaml parse -i test/test.yaml
By default the command will output to stdout. If you want to write directly to a file, you can pass an output path:
wp-yaml parse -i test/test.yaml -o result.xml
Supported Fields:
title: Site Titlelink: http://www.example.comdescription: Just a Wordpress Sitedate: Tue, 21 Jan 2015 12:00:00 +0000siteUrl: http://www.example.comblogUrl: http://www.example.comitems: - title: Hello World slug: hello-world date: Tue, 21 Jan 2015 12:00:00 +0000 postType: post description: Example post excerpt: Hello my darlings. content: | <h2>Hello my darlings</h2> <p>This is a test</p> categories: - name: Example Category nicename: example-category