Migrates WordPress content from the old (pre-2017) WordPress site to the new Hugo site via WP-CLI.
Place command directory somewhere that WP-CLI can reach it. Then use wp package install
or the --require
parameter to load the command.
wp hh-hugo migrate_post Migrate a single item from WP `post` post type to Hugo `blog` section
wp hh-hugo migrate_all_posts Migrate all items from WP `post` post type to Hugo `blog` section
wp hh-hugo migrate_group Migrate a single group
wp hh-hugo migrate_all_groups Migrate all groups
wp hh-hugo delete_content_dirs Delete hugo-content and hugo-images directories
wp hh-hugo markdown Print post_content transformed to Markdown