wp-content/uploads
on the WordPress site.wp-content/plugins
directory.composer install --no-dev
within the wp2grav_exporter
directory to install dependencies.wp plugin activate wp2grav_exporter
, or - Via the admin GUI.wp wp2grav-all
to export all items. See other options below.WP_ROOT/wp-content/uploads/wp2grav-exports/DATE
Running wp wp2grav-all
will run each of the following export steps at once. Afterwards, follow each section below on how to import the new data to a Grav install.
WordPress users on left exported to Grav on the right.
wp wp2grav-users
will generate Grav user account files.
EXPORT/accounts/
.
Copy the EXPORT/accounts
directory to your user
directory (e.g. username.yaml files should be placed at user/accounts
).
WordPress users with roles on left exported to Grav groups on the right.
wp wp2grav-roles
will generate a Grav groups.yaml file.
WordPress user roles export as Grav groups in a groups.yaml
file at config/groups.yaml
. Some notes about the role exporting:
wp_<ROLE_WITH_UNDERSCORES>
(e.g. subscriber
becomes wp_subscriber
).wp_administrator
group.wp_administrator
group receives admin.super
access along with admin.login
access. Accounts with these permissions are full admins on the site!wp_authenticated_user
group receives admin.login
access.Copy the EXPORT/config
directory to users/config
.
WordPress post types are converte to Grav page types, with a pre-pended "WP" in front of each type (highlighted in yellow here).
wp wp2grav-post-types
will generate a basic Grav plugin, along with page types that match the WordPress post types.EXPORT/plugins
directory to your user
directoryuser/plugins/wordpress-exporter-helper
and run composer install
.Admin view of WordPress "Sample Page" on left exported to Grav markdown on the right.
User view of WordPress "Sample Page" on left exported and rendered via Grav on the right.
wp wp2grav-posts
will export all posts.data/wp-content
and in-line content will (eventually) be included within the page's directory.EXPORT/pages
directory to your user
directoryEXPORT/data
directory to your user
directoryAdmin view of WordPress General Settings on left exported to Grav Site Config on the right.
wp wp2grav-site
will export site metadata.EXPORT/config/site.yaml
.EXPORT/config/site.yaml
directory to Grav at user/config/site.yaml
.Found errors? Think you can improve this documentation? Simply click the Edit link at the top of the page, and then the icon on Github to make your changes.
Powered by Grav + with by Trilby Media.