Export WordPress menu

Learning to export WordPress menu items only takes a few steps.

Whether you’d like to export a full menu and duplicate it on another site, or if you’d prefer moving a few of the menu buttons, the following tutorial delivers the best results.

How to export WordPress menu items

While WordPress does include its own import/export tool if you go to Tools > Export, this tool doesn’t let you single out just your menu items by default, so it’s not a great option unless you want to migrate all of your content.

To fix that, you can use a plugin to add a menu-only export option to the native tool. The free WPS Menu Exporter plugin is one workable choice for this classic XML-based method, though some newer menu import/export plugins offer a more direct workflow depending on your setup:

To get started, install and activate the plugin you want to use from WordPress.org. Then, here’s how to use the XML export/import approach.

Step 1: Verify your current menu setup

Prior to exporting your WordPress menu, take a look at what you currently have for a menu to ensure it’s what you want. This way, you don’t go through the export WordPress menu process only to have to repeat it.

For classic themes, go to Appearance > Menus to check your menu. If you’re using a block theme, navigation is often managed in the Site Editor instead, so this classic menu workflow may not map over exactly the same way.

Appearance > Menus screen in WordPress with available menus listed

Scroll through your menus. Check the names of the desired menus, and test all pages and links to see if they still work.

Menu structure view in the classic WordPress menu editor

Step 2: Export your WordPress menu

Next, go to Tools > Export in the dashboard.

WordPress Tools > Export page open in the dashboard

With the WPS Menu Exporter plugin installed, you should now see a field called Navigation Menu Items when you access the native WordPress export tool.

Select that box and click on the Download Export File button.

Tools > Export page with Navigation Menu Items selected and Download Export File button

This process downloads an XML file to your computer. Save it in a location you’ll remember for later. Feel free to rename the file.

Downloaded WordPress XML export file for navigation menu items saved locally

Step 3: Import WordPress menu to new site

A quick note about importing your menu – in addition to importing your menu items, the import process will also import any pages/terms that are referenced in your menu. For example, if your menu links to your “Contact Us” page, the import process will also import the “Contact Us” page.

Once you have the export file for your WordPress menu, go to the new site where you want to import your menu.

You can import the menu file through the default WordPress Import tool, so there’s no need to install the WPS Menu Exporter plugin on your new site.

Click on Tools > Import.

 WordPress Tools > Import page listing available importers

Scroll to the WordPress heading. Click the Install Now link.

WordPress importer card showing Install Now action

That link converts to another link that reads Run Importer. Click that link to proceed.

WordPress importer ready with Run Importer link

Click the Choose File button in the new window to select the XML export file that you downloaded in the previous step.

Once you’ve selected the file, click the Upload file and import button.

WordPress importer choose file interface with menu export XML selected

Although this is primarily for importing posts, feel free to assign posts to a specific author. Again, it’s possible that your menu links to posts, in which case the import process will also import those linked posts.

Also, check the box that says Download and Import File Attachments. This is useful for any menu items that lead to pages on your site. With this checked, the importer retains all media attachments for those pages.

Then, click the Submit button.

 WordPress importer options to assign posts and import attachments before running import

The Success message looks like the screenshot below. It tells you if any new posts or pages were created or if they already existed on the website.

WordPress import completed confirmation with details on imported content

Step 4: Verify your new menu is working

If you go to Appearance > Menus, you should see that the menu from the other site is now on this WordPress installation. Again, test the menu to see if everything looks right. For instance, you might need to remove some duplicate items depending on how you configured your existing menu.

Imported navigation menu visible under Appearance > Menus on the destination site

Finally, examine the pages to see if any were imported. You may need to delete pages or ensure the media items were imported as well.

 Pages screen showing new pages created by the menu import

Make sure to take a look at the frontend of your site to see how the transferred menu works!

Site frontend showing the imported navigation menu in the theme header

Final thoughts

If you’re using a different theme on your new site, you’ll have to adjust the menu design settings to achieve the desired look. Other than that, the process to export WordPress menu elements is pretty simple, since there isn’t any need for custom coding.

Finally, if you’re looking for a more comprehensive way to move your entire WordPress site, check out our guide on how to migrate WordPress.

Do you still have any questions about how to import or export WordPress menu items? Ask us in the comments!

Yay! 🎉 You made it to the end of the article!

0 Comments
Newest
Oldest Most Voted