wordpress-to-jekyll-exporter 0,1,0,0,0,0 travis-ci Packagist phpunit

One-click WordPress plugin that converts all posts, pages, taxonomies, metadata, and settings to Markdown and YAML which can be dropped into Jekyll

2 years after GPL-3.0

WordPress to Jekyll Exporter

One-click WordPress plugin that converts all posts, pages, taxonomies, metadata, and settings to Markdown and YAML which can be dropped into Jekyll.

Build Status

A Note

Many shared hosts may use PHP 5.2 by default. WordPress to Jekyll Export requires PHP 5.3 or greater.

If you get an error message that looks like unexpected T_STRING or expecting T_CONSTANT_ENCAPSED_STRING, you need to update your PHP version. In a shared hosting environment, you should be able to change the version of PHP used by simply toggling the setting in the host's control panel.

PHP 5.2 lost support from the PHP project itself more than five years ago. You'll need to be running at least PHP 5.3 which adds namespace support (the reason it's breaking), but I'd recommend at least 5.5 (or the latest your host supports) as it's the oldest supported version: https://en.wikipedia.org/wiki/PHP#Release_history


  • Converts all posts, pages, and settings from WordPress for use in Jekyll
  • Export what your users see, not what the database stores (runs post content through the_content filter prior to export, allowing third-party plugins to modify the output)
  • Converts all post_content to Markdown Extra (using Markdownify)
  • Converts all post_meta and fields within the wp_posts table to YAML front matter for parsing by Jekyll
  • Generates a _config.yml with all settings in the wp_options table
  • Outputs a single zip file with _config.yml, pages, and _posts folder containing .md files for each post in the proper Jekyll naming convention
  • No settings. Just a single click.


  1. Place plugin in /wp-content/plugins/ folder
  2. Activate plugin in WordPress dashboard
  3. Select Export to Jekyll from the Tools menu

Command-line Usage

If you're having trouble with your web server timing out before the export is complete, or if you just like terminal better, you may enjoy the command-line tool.

It works just like the plugin, but produces the zipfile on STDOUT:

php jekyll-export-cli.php > jekyll-export.zip

If using this method, you must run first cd into the wordpress-to-jekyll-exporter directory.

Alternatively, if you have WP-CLI installed, you can run:

wp jekyll-export > export.zip

The WP-CLI version will provide greater compatibility for alternate WordPress environments, such as when wp-content isn't in the usual location.

Custom post types

To export custom post types, you'll need to add a filter to do the following:

add_filter( 'jekyll_export_post_types', array('posts', 'pages', 'you-custom-post-type') );

The custom post type will be exported as a Jekyll collection. You'll need to initialize it in the resulting Jekyll site's _config.yml.


View Past Releases


The project is licensed under the GPLv3 or later

Related Repositories



Exitwp is tool primarily aimed for making migration from one or more wordpress b ...



A WordPress plugin to sync content with a GitHub repository (or Jekyll site) ...



A collection of awesome Jekyll goodies (tools, templates, plugins, guides, etc.) ...



A comprehensive, partially automatically generated comparison of static site gen ...



Hugo is static site generator written in golang. Wordpress is a tool for remote ...

Top Contributors

benbalter scribu ghelleks blalor kennethkalmer PedroLamas jiehanzheng jhabdas markjaquith mitcho


package version
mustangostang/spyc ~0.5
pixel418/markdownify ~2.1
alchemy/zippy ~0.3
dev phpunit/phpunit ~5.6
wp-cli/wp-cli ~0.22
wp-coding-standards/wpcs ^0.10.0


-   v2.1.1 zip tar
-   v2.0 zip tar
-   v2 zip tar
-   v1.3 zip tar
-   v1.2 zip tar
-   v1.1.2 zip tar
-   v1.1.1 zip tar
-   v1.1 zip tar
-   v1.0 zip tar
-   2.1.0 zip tar
-   2.0.1 zip tar
-   2.0 zip tar