Shopaii WordPress to Hugo Exporter
read from the database and export the wordpress website to hugo cms
by Chris · github.com/chrispengcn/shopaii-wordpress-hugo-export · website
★ 0stars
0forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/chrispengcn/shopaii-wordpress-hugo-export/archive/refs/heads/main.zipReadme
Shopaii WordPress to Hugo Exporter
A WordPress plugin that exports posts, pages, products, and categories to Hugo-compatible Markdown files.
Features
- Export WordPress posts, pages, and products to Markdown
- Export categories and product categories
- Customizable export directories
- Option to overwrite existing files or skip them
- Configurable maximum export count
- Hugo-compatible front matter with proper YAML formatting
- Preserves metadata including dates, categories, tags, and featured images
- Special handling for WooCommerce products with additional product metadata
Installation
- Download the plugin zip file
- In your WordPress admin dashboard, navigate to Plugins > Add New
- Click "Upload Plugin" and select the zip file
- Activate the plugin after installation
Usage
- In your WordPress admin dashboard, find the "HUGOCMS exporter" menu item
- Configure your export settings:
- Select export directory (default or English)
- Choose which categories to export
- Set overwrite options for existing files
- Define maximum export count
- Select content types to export (posts, pages, products, or all)
- Click "Start Export" to begin the export process
- After completion, you'll see a summary of exported, skipped, and failed items
Exported Content
The plugin exports content to Markdown files with YAML front matter containing:
- Layout information
- Title and slug
- URLs and permalinks
- Publication date
- Categories and tags
- Featured image
- For products: SKU, product categories, product tags, buy links, images, and short description
Export Directory
By default, files are exported to:
/wp-content/hugo/_default_project/content/for the default directory/wp-content/hugo/_default_project/content/en/for the English directory
Subdirectories are automatically created for different content types:
- Posts:
/blog/ - Pages:
/pages/ - Products:
/products/ - Categories:
/categories/ - Product categories:
/product_categories/
Requirements
- WordPress 4.7 or higher
- PHP 5.6 or higher
- WooCommerce (if exporting products)
License
This plugin is released under the GPL-2.0+ license.
Author
Chris
https://hugocms.net