---
title: "Menu Items Point to the Wrong Pages After Copying a Menu to Another Site"
url: "https://wpimportexport.com/sync-menu-items-pages-categories-between-sites/"
description: "Menu items store page IDs, so a copied menu links to the wrong pages. How a menu push links items to the right pages and categories on the other site."
type: post
published: 2026-11-27T07:00:00+00:00
modified: 2026-11-25T18:35:50+00:00
categories: ["Content Sync", "Tutorials"]
tags: ["Content Sync", "sync WordPress sites", "WordPress content sync"]
docs_topics: ["Sync and migration"]
---

# Menu Items Point to the Wrong Pages After Copying a Menu to Another Site

A WordPress menu item doesn’t store the address of the page it links to; it stores the page’s ID. The same page has a different ID on every site, so a menu copied to another site as-is points to the wrong pages, to posts that happen to have those IDs, or to nothing. With **Import Export by RockStarLab** PRO, a menu push finds each page, post and category on the other site and links the item to it there, and tells you which items it couldn’t find.

**PRO:** menu sync between sites is a PRO feature and needs PRO with a license on both sites. The test below used Import Export by RockStarLab 2.2.13 and PRO 2.1.31.

## Short Answer

Push the menu from Appearance > Menus with **Sync** > **Push current menu** into a menu on the other site. Page, post and category items are linked to the page, post or category with the same slug (or the same title) on the other site, whatever its ID. Custom links keep their address. An item whose page doesn’t exist on the other site is added as a custom link to the source site and named in the result; copy that page first and push the menu again.

## The menu we pushed

On the source site, the _Shop Footer_ menu had six items: two pages, a post, a category, a custom link to Instagram and the _Gift Cards_ page:

![Shop Footer menu on the source site with two pages, a post, a category, an Instagram custom link and the Gift Cards page](https://wpimportexport.com/wp-content/uploads/2026/11/menu-source.webp)

_The menu on the source site, with its Export and Sync buttons._

The other site had the pages _Wholesale Enquiries_ and _Barista Courses_, the post and the category, all with other IDs than on the source site. _Gift Cards_ existed only on the source site.

## Push the menu

Menu sync updates a menu that exists on the other site, so we first created an empty _Shop Footer_ menu there. Then, on the source site, in Appearance > Menus with _Shop Footer_ open, we clicked **Sync**, chose the other site, clicked **Push current menu** and picked the receiving menu:

![Push current menu dialog with the receiving menu Shop Footer selected](https://wpimportexport.com/wp-content/uploads/2026/11/menu-push-dialog.webp)

_Pick the menu on the other site that receives the items._

The result named the item it couldn’t link:

![Sync Menus result: Menus synced, Items: 6, Gift Cards not found on the receiving site and added as a custom link to the source site](https://wpimportexport.com/wp-content/uploads/2026/11/menu-unlinked-result.webp)

_The result names the item whose page the other site doesn’t have._

Five items were linked to the right objects on the other site. _Gift Cards_ was added as a custom link to the page on the source site, so the menu has no gap, but on a live site that link would lead visitors to staging. That’s why the result names it.

## Fix the missing page and push again

We pushed the _Gift Cards_ page to the other site with [Content Sync](https://wpimportexport.com/how-content-sync-works-api-keys-push-pull/) and pushed the menu again. This time all six items were linked, and the menu on the other site showed _Gift Cards_ as a Page item:

![Shop Footer menu on the receiving site with all six items, Gift Cards now a Page item](https://wpimportexport.com/wp-content/uploads/2026/11/menu-target.webp)

_After the page was copied and the menu pushed again, every item is linked._

| Menu item on the source site | On the other site after the push |
| --- | --- |
| Page that exists there with another ID | Linked to that page |
| Post that exists there | Linked to that post |
| Category that exists there | Linked to that category |
| Custom link | Same address |
| Page that doesn’t exist there | Custom link to the source page; named in the result |

## Things to know

- Pages and posts are matched by their slug (for child pages, the full path such as `shop/gift-cards`), then by exact title. If neither matches on the other site, the item becomes a custom link as above.
- Push the pages and posts with Content Sync first, then the menu: its items link to them right away.
- Each push makes the receiving menu match the source menu item for item, so edit the menu on the site you push from.
- Assign the menu to its location (header, footer) once on the other site in Appearance > Menus > Manage Locations; later pushes keep it there.

As before any push, [back up the site you push to](https://wpimportexport.com/how-to-create-a-wordpress-website-backup-and-restore-it/), or ask your AI agent to start the backup.

## With an AI agent

Import Export by RockStarLab gives AI agents its exports, imports and Content Sync as abilities. Through the WordPress MCP Adapter, WordPress itself offers an agent only read-only abilities for site, user and environment information, so without the plugin the agent cannot do the steps above (to connect an agent, see [connecting Claude Code to WordPress](https://wpimportexport.com/connect-claude-code-to-wordpress-mcp/)). With it, one request is enough:

```
With Import Export by RockStarLab, push the Shop Footer menu to the Shop Footer menu on the staging site.
```

In our run, the agent listed the menus on staging with `rsl-ie-pro/sync-menus-browse` to find the receiving menu’s ID, then called `rsl-ie-pro/sync-menus-push` with the source menu and that ID. The result was 1 menu updated and 6 items created, 0 failed.

## FAQ

### Why do menu items link to the wrong pages after copying a menu?

Menu items store page IDs, and IDs differ between sites. A menu push links each item to the page with the same slug or title on the other site.

### What happens to a menu item whose page doesn’t exist on the other site?

It is added as a custom link to the source site’s page, and the result names it. Copy the page and push the menu again.

### Do I need to create the menu on the other site first?

Yes. Create an empty menu with the same name there, then pick it as the receiving menu.

### Are custom links changed?

No. Custom links keep the address you entered.

## Related Guides

- [How to Sync WordPress Menus Between Sites with ACF Fields](https://wpimportexport.com/how-to-sync-wordpress-navigation-menus-between-sites/)
- [Export and Import WordPress Menus: Move a Menu to Another Site](https://wpimportexport.com/export-import-wordpress-menus-another-site/)
- [Same Slug on Both Sites: What Content Sync Does and How to Free the URL](https://wpimportexport.com/sync-slug-conflicts-same-slug-wordpress-sites/)
- [Sync Parent and Child Pages Between WordPress Sites](https://wpimportexport.com/sync-parent-child-pages-wordpress-sites/)

Get the free plugin on [WordPress.org](https://wordpress.org/plugins/import-export-by-rockstarlab/).
