Repository navigation
Content types and destinations
Written against v0.35.0.
What the importer reads from WordPress, where each kind of content lands in Statamic, and what a run does in order.
| WordPress type | What it is | Default destination |
|---|---|---|
page |
Pages |
pages collection |
post |
Posts |
post collection |
uamspeople |
People |
people collection |
redirect_rule |
Redirect rules |
redirects global set |
tablepress_table |
TablePress tables |
tables collection |
kb |
MinervaKB articles |
knowledge_bases collection |
nav_menu_item |
Navigation menu items | primary_navigation |
Other post types in the export are reported but not imported.
The destinations in the table above are used when they exist. When a default destination is not available, the command asks for one.
For each kind of data a content type carries, the command asks how an item that already exists is handled:
| Data | Choices |
|---|---|
| Entries | Overwrite, skip, or create additional entries for matching ids |
| Assets | Overwrite, skip, or create additional files (when uploads are enabled) |
| Tables | The same choices, when TablePress content applies |
| Redirects | Choices for matching source URLs in the redirect globals |
The importer enables a collection, global set or taxonomy for the selected site when the content needs it. For example:
| Enabled | When |
|---|---|
people_group |
uamspeople imports, or pages using show-people shortcodes |
region and location_type
|
Pages with Find-a-Doc blocks |
logos_item_categories |
Pages with logo list blocks |
Before import, the command warns about content patterns that usually need review by hand, and you choose whether to continue:
- Classic editor content (no Gutenberg block wrappers)
- WordPress Row blocks
- WordPress Details blocks
- WordPress Freeform blocks
- MinervaKB entries without required topic assignments
An unattended run answers with --unsupported-content (Command reference).
- Validates the export path.
- Scans the export and shows the content types found, with counts.
- Asks for the target site and content type.
- Uses the default destination, or asks for one.
- Asks for the overwrite choices that apply (entries, assets, tables, redirects).
- Imports the content and its assets.
- Validates and enables the taxonomies and site configuration the content needs.
- Builds collection trees where needed.
- Offers to import another content type from the same export.
When you answer no to importing more content types, the command finalizes: it clears the Stache, runs deferred work (including navigation import where it applies), optionally measures the change in codebase file size (WORDPRESS_IMPORT_MEASURE_FILESIZE), clears the relevant caches, runs Bard and YAML sanitization on the collection entries, shows the warnings it collected, and completes.
The per-step scans, the streaming parser and the completion order are described in the technical reference.
-
Importing navigation menus:
nav_menu_item. -
Importing MinervaKB articles:
kb.
Home | Your first import | Guides | Troubleshooting | Reference | README | Repository
Written against v0.35.0. Edit these pages in docs/wiki/ through a pull request; edits made in the wiki are overwritten by the next publish.
Getting started
Guides
- Importing from the migration API
- Previewing an import with verify
- Importing navigation menus
- Importing MinervaKB articles
Troubleshooting
Reference
Project