Plugin info

Total downloads: 4,238
Active installs: 100
Total reviews: 2
Average rating: 5
Support threads opened: 0
Support threads resolved: 0 (0%)
Available in: 1 language(s)
Contributors: 1
Last updated: 1/16/2020 (2176 days ago)
Added to WordPress: 1/6/2020 (5 years old)
Minimum WordPress version: 4.6
Tested up to WordPress version: 5.3.20
Minimum PHP version: 5.6

Maintenance & Compatibility

Maintenance score

Possibly abandoned • Last updated 2176 days ago • 2 reviews

22/100

Is WP Gatsby Markdown Exporter abandoned?

Possibly abandoned (last update 2176 days ago).

Compatibility

Requires WordPress: 4.6
Tested up to: 5.3.20
Requires PHP: 5.6

Languages

Similar & Alternatives

Explore plugins with similar tags, and compare key metrics like downloads, ratings, updates, support, and WP/PHP compatibility.

WPGatsby
Rating 5.0/5 (8 reviews)Active installs 3,000
Headless Mode
Rating 5.0/5 (6 reviews)Active installs 2,000
WP Spark Connector
Rating 0.0/5 (0 reviews)Active installs 0
WPGraphQL
Rating 4.9/5 (48 reviews)Active installs 30,000
WPGraphQL Blocks
Rating 0.0/5 (0 reviews)Active installs 400
Publish to Netlify
Rating 0.0/5 (0 reviews)Active installs 100

Description

The plugin creates zip files containing posts converted to Markdown. A WP-CLI command exists to handle exporting sites with a large amount of content.

  • Move WordPress content to Gatsby-friendly Markdown.
  • Customize the export! Remap and restructure exported fields.
  • CLI: Avoid PHP timeouts by using the command line with WP-CLI.
  • CLI: Export progress bar (great for large sites)!

Reminder: always keep a backup of the WordPress database and files in case your export doesn’t work as expected!

Working with Gatsby

If you’re just getting started with Gatsby, we recommend experimenting with a Markdown based Gatsby starter like Tina Grande. Installation is as easy as:

git clone https://github.com/tinacms/tina-starter-grande.git

cd tina-starter-grande

yarn install && gatsby develop

Then copy your exported WordPress Markdown into the content directory or point the wp gatsby-markdown-export command at the content directory.

Want to port your WordPress or HTML theme to Gatsby? Checkout Porting an HTML Site to Gatsby for tips.

Command Line Usage

The command line functionality uses WP-CLI to interact with WordPress. WP-CLI is easy to install if you haven’t already.

Once it’s installed, you can export content to a directory like this:

wp gatsby-markdown-export --directory=/example/gatsby-starter/src/content

All CLI arguments are optional.

Option
Description
Default value

--help
get help

--directory=
export output directory
random temp directory

--post_types=
post types to export, see: https://developer.wordpress.org/reference/classes/wp_query/#post-type-parameters
page,post

--post_status=
post status to export, see: https://developer.wordpress.org/reference/classes/wp_query/#status-parameters
any

--fields_to_markdown=
fields to convert to Markdown
excerpt

--excluded_front_matter=
fields to exclude from front matter

--post_date_format=
format for post publish date, see: https://www.php.net/manual/en/function.date.php
c

--upload_dir=
directory in the export to copy WordPress uploads
uploads

--remap_fields=
remap front matter field names, example: find1,replace1;find2,replace2

--fields_to_array=
convert single value front matter fields to arrays

--include_private_fields=
private post meta fields to include (they start with _)

--skip_copy_uploads
flag, skips copying WordPress uploads to the export

--skip_original_images
flag, skips the use of original dimension images

--skip_enforce_charset
flag, skips use of blog_charset for the XML charset

--create_type_directory
flag, creates directories based on post type

Installation

  1. Upload the plugin files to the /wp-content/plugins/plugin-name directory, or install the plugin through the WordPress plugins screen directly.
  2. Activate the plugin through the ‘Plugins’ screen in WordPress
  3. Use the Settings->Export to Gatsby screen to export content

Frequently Asked Questions

What does `Warning: The markdown converter encountered invalid HTML and could not convert the content at:` mean?

This means that the markdown converter couldn’t convert the referenced post to markdown, so we will just copy the HTML as it is.

Review feed

No reviews available

Screenshots

  1. The export options form allows for customization of the exported Zip file.

    The export options form allows for customization of the exported Zip file.

Changelog

0.3.3

  • Support including private post meta fields (like Yoast)