Repository navigation
Importing navigation menus
github-actions[bot] edited this page Nov 19, 2026
·
1 revision
Written against v0.35.0.
You want a WordPress menu in Statamic navigation. Menu items (nav_menu_item) have their own flow, because a menu links to content that has to be imported first.
- Import the pages and posts the menu links to, from the same export, before the menu. A link to a post type resolves to the imported Statamic entry, so an entry that does not exist yet cannot be linked.
- Choose
nav_menu_itemas the content type. The command confirms the active primary menu context (in the UAMS themes, a theme label such as "White Bar" or "Primary Navigation Menu"). - Choose the WordPress menu to import from the menus the export holds. Only items from that menu are imported (
category domain="nav_menu"). - Finish the run. Navigation is imported during finalization, after you answer no to importing more content types.
Warning: the site's existing navigation is cleared before the menu is imported.
| WordPress item | In Statamic |
|---|---|
Custom URL (_menu_item_type: custom) |
A link to _menu_item_url
|
Post type link (_menu_item_type: post_type) |
A link to the imported entry |
Taxonomy link (_menu_item_type: taxonomy) |
Skipped |
Parent and child items and their order are kept (_menu_item_menu_item_parent). A collection the menu links into may be enabled on the site when linked entries exist.
-
Content types and destinations:
nav_menu_itemgoes toprimary_navigation. - The technical reference covers
NavigationMenuSelectorandNavigationMenuImporter.
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