Skip to content

Latest commit

 

History

History
18 lines (13 loc) · 924 Bytes

README.md

File metadata and controls

18 lines (13 loc) · 924 Bytes

Hacks/Hackers migration

Migrates WordPress content from the old (pre-2017) WordPress site to the new Hugo site via WP-CLI.

Setup

Place command directory somewhere that WP-CLI can reach it. Then use wp package install or the --require parameter to load the command.

Usage

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