Repolode
benbalter

benbalter/wordpress-static-site-exporter

A one-click WordPress plugin that exports posts, pages, metadata and settings to Markdown and YAML for Jekyll, Hugo or other static site generators.

Stars
1,081
Forks
130
Open issues
2
Last commit
3 hours ago

What is it?

Static Site Exporter is a WordPress plugin that converts a site's content into files a static site generator can read. It turns post content into Markdown and writes post and page metadata, taxonomies and fields into YAML front matter. It also generates a _config.yml containing the settings from the WordPress options table.

The export runs from the Tools menu in the WordPress dashboard with a single click and produces a zip file containing the _config.yml, pages, and a _posts folder with Markdown files named using Jekyll conventions. Content is run through the_content filter before export, so the output reflects what visitors see, including changes made by other plugins.

WP-CLI support allows selective export by category, tag, or post type, and the project is designed for Jekyll but works with Hugo or any Markdown and YAML based engine.

Key features

  • 01Converts post and page content from WordPress to Markdown.
  • 02Writes post metadata, custom fields and taxonomy data into YAML front matter.
  • 03Generates a _config.yml from WordPress site settings.
  • 04Packages output as a zip with Jekyll-style _posts naming.
  • 05Exports selectively by category, tag, or post type via WP-CLI.

Use cases

  • Migrating a WordPress blog to a Jekyll site hosted on GitHub Pages.
  • Moving content to Hugo or another Markdown-based static site generator.
  • Exporting only selected categories or post types from a WordPress site.

Quick start

  1. 1

    Place the plugin in the /wp-content/plugins/ folder

  2. 2

    Activate the plugin in the WordPress dashboard

  3. 3

    Select Export to Jekyll from the Tools menu

Things to know

  • Licensed under GPL-3.0, a copyleft license that requires derivative works to be distributed under the same terms.

In collections

Topics

FAQ

What is wordpress-static-site-exporter?
A one-click WordPress plugin that exports posts, pages, metadata and settings to Markdown and YAML for Jekyll, Hugo or other static site generators. Static Site Exporter is a WordPress plugin that converts a site's content into files a static site generator can read. It turns post content into Markdown and writes post and page metadata, taxonomies and fields into YAML front matter. It also generates a _config.yml containing the settings from the WordPress options table.
Is wordpress-static-site-exporter free to use? What license does it have?
wordpress-static-site-exporter is open source under the GPL-3.0 license. Check the license terms before using it in commercial products.
Is wordpress-static-site-exporter still maintained?
Actively maintained. The last commit to wordpress-static-site-exporter was on Nov 7, 2026.
What can I use wordpress-static-site-exporter for?
Migrating a WordPress blog to a Jekyll site hosted on GitHub Pages. Moving content to Hugo or another Markdown-based static site generator. Exporting only selected categories or post types from a WordPress site.
How do I install wordpress-static-site-exporter?
Place the plugin in the /wp-content/plugins/ folder Activate the plugin in the WordPress dashboard Select Export to Jekyll from the Tools menu
Where can I get wordpress-static-site-exporter?
The source code and installation instructions are on GitHub: https://github.com/benbalter/wordpress-static-site-exporter

Summary generated by AI from the project's README. GitHub stats refresh daily.

Related projects