{
  "id": 10566869,
  "title": "Rebuild a WordPress navigation menu with Claude without touching the live header until you're ready",
  "url": "https://urgent.news/2026/09/29/rebuild-a-wordpress-navigation-menu-with-claude-without-touching-the",
  "topic": "ai",
  "section": "AI",
  "published": "2026-09-29T00:13:23.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/wppilot/rebuild-a-wordpress-navigation-menu-with-claude-without-touching-the-live-header-until-youre-ready-216n"
  },
  "original_language": "en",
  "account": "Reorganising a website's main menu may seem like a small task, but it can be risky if not handled properly. A client wants to split \"Services\" into three sections, move the blog under \"Resources,\" remove two dead links, and change the order. Editing the menu in the WordPress admin can cause the header to break if a mistake is made. Some people are now asking artificial intelligence clients like Claude to handle this job. The safer approach is to build the new menu alongside the old one, check it, and then swap the theme location when ready. This pattern works with any MCP client, such as Claude Code, Desktop, Cursor, VS Code, and more. The plugin used is WPPilot Free, which turns the site into an MCP server. The following steps outline the process:\n\n1. Identify the existing menus and locations using the \"list-menus\" and \"list-menu-locations\" abilities. This creates a snapshot of the current menu.\n2. Build a new menu called \"Primary 2026-10 (staging)\" with the desired structure. Use the \"create-menu\" ability to create an empty classic menu, then use \"upsert-menu-item\" to add or update items with their respective page IDs or URLs. If a page doesn't exist, list the missing items instead of creating pages. Finally, use \"reorder-menu-items\" to set the final order and nesting.\n3. Review the new menu by comparing it to the current menu as two outlines. List any added, removed, renamed, or moved items. Ensure every item points to a published page, post, or term.\n4. Swap the location of the new menu to the primary header using the \"assign-menu-location\" ability. The change ledger will show a rollback option if needed.\n5. Test the site by loading it in a private window and navigating through the header to verify the changes.",
  "summary": "Reorganising a site's main menu is one of those jobs that sounds small and isn't. A client wants \"Services\" split into three, the blog moved under \"Resources\", two dead links gone and the order changed. In wp-admin that's twenty minutes of dragging items around on the menu visitors are using right now . One wrong drop and the header is broken until you notice. It's also a job people now ask an AI…",
  "key_points": [
    "Identify existing menus and locations to create a menu snapshot",
    "Build new \"Primary 2026-10 (staging)\" menu with desired structure",
    "Swap new menu location to primary header for final testing"
  ],
  "editors_take": null,
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "also_reported_by": []
  },
  "ai_generated": true,
  "disclaimer": "Summaries, key points and the editor’s take are written by software from other outlets’ reporting and may contain errors — always check the linked original."
}