Wordpress To Hugo Exporter

screenshot of Wordpress To Hugo Exporter

Hugo is static site generator written in golang. Wordpress is a tool for remote access to your server ;-) Contributions welcome!

Product Analysis: WordPress to Hugo Exporter

Overview:

WordPress to Hugo Exporter is a plugin that allows users to convert their WordPress content into Markdown and YAML format for use in Hugo, a static site generator. This plugin makes it easy to migrate from WordPress to Hugo by converting all posts, pages, taxonomies, metadata, and settings into the appropriate format.

Features:

  • One-click WordPress plugin: Easily convert all WordPress content to Markdown and YAML for use in Hugo.
  • Converts all posts, pages, and settings: Ensures that all content and settings from WordPress are properly converted for use in Hugo.
  • Export what users see: Runs content through the _content filter prior to export, allowing third-party plugins to modify the output.
  • Converts post_content to Markdown Extra: Uses Markdownify to convert all post_content to Markdown Extra format.
  • Converts post_meta to YAML frontmatter: Converts all post_meta and fields within the wp_posts table to YAML frontmatter for parsing by Hugo.
  • Exports comments as part of posts: Optionally exports comments as part of their respective posts. This feature needs to be enabled manually by editing the PHP source code.
  • Exports private posts and drafts: Marks private posts and drafts as drafts in Hugo to prevent publishing.
  • Generates config.yaml: Generates a config.yaml file with all settings from the wp_options table.
  • Outputs single zip file: Outputs a single zip file containing config.yaml, pages, and a post folder with .md files in the proper Hugo naming convention.
  • No settings required: Simple one-click usage without any additional settings.

Self-hosted WordPress Installation:

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