The built-in menu editor for WordPress is a nicely built utility. But often with larger content sites you end up spending a lot of effort keeping the
menus and the pages in sync. This plugin serves three major purposes:
- Allows for easy creation of sitemap menus by removing the pagination setting for “View All” pages.
- Allows for copying entire menus to a new menu.
- Allows you to synchronize the parent-child hierarchy of pages with the parent-child hierarchy of a given menu.
The first feature is pretty clear, it’s a pain to add say 150 pages to a sitemap menu when they are paginated by default at 50 pages.
The second feature allows you to copy an existing menu and play around with tweaks to the structure without losing the effort put into the original menu.
And the third feature is my favorite. Basically instead of going to every single page and modifying the parent/child relationship, you can create a sitemap menu and use the wonderful drag n drop feature of the menu editor to restructure your entire site.
- Upload the plugin contents to the
- Activate the plugin through the ‘Plugins’ menu in WordPress Admin
- You’re done!
Q: How do I use the tool once it’s installed?
A: Just go to the Menu editor under Appearance > Menus and you’ll see two new buttons next to Save Menu.
Q: I clicked the “Sync Page Structure” (or Copy Menu) button but nothing happened, the cursor just shows an hourglass. What happened?
A: You might have a really large site and because the requests to sync the page are driven by ajax, it might be waiting a while for the process to complete. Give it some time and you should get a response. If you don’t or you get an error about a time-out then you’ll need to configure your hosting options to allow longer page load times.
Q: How exactly do I create a site map?
A: Just create a new menu – and click the “View All” link under the Pages widget in the Menus Editor. Click the “Select All” link and then click “Add to Menu”. If your pages already had parent child relationships defined in the Page Editor, then your menus should reflect that. If not, you can adjust the nesting structure using the menu editor and then click “Sync Page Strucutre” to update the Page Parent settings of all the items in your menu.
Q: Is ther any way to undo these changes?
A: Nope!, be sure to backup your database before making massive changes to a live site. You can and should use the “Copy Menu” feature to backup a menu before you make changes to it so you can restor it later if necessary.
以下人員參與了開源軟體〈Enhanced Menu Editor〉的開發相關工作。參與者
- Fixed some minor warnings for menus that are empty or when the user is on the new menu tab
- Initial creation of plugin