admin管理员组

文章数量:1326299

I want to export all navigation menu's from one site and import the menu's in another site. I have tried to export the tables:

  • wp_posts
  • wp_postmeta
  • wp_terms
  • wp_termmeta
  • wp_term_relationships

And import them in another database. This does not seem to work. Can someone point me in the right direction?

I want to export all navigation menu's from one site and import the menu's in another site. I have tried to export the tables:

  • wp_posts
  • wp_postmeta
  • wp_terms
  • wp_termmeta
  • wp_term_relationships

And import them in another database. This does not seem to work. Can someone point me in the right direction?

Share Improve this question asked Feb 10, 2017 at 12:37 Gert-Jan KooijmansGert-Jan Kooijmans 1531 gold badge1 silver badge5 bronze badges 3
  • WordPress has an Import/Export tool, but it doesnt works with nav menus only, you can try this plugin so the Menu option shows in Export – David Lee Commented Feb 10, 2017 at 13:15
  • @DavidLee - Thanks for the suggestion, Although the plugin has not been updated in 6 years. It still does the job. Problem solved! – Gert-Jan Kooijmans Commented Feb 10, 2017 at 14:29
  • yeah, i had the same task before, let me put this in an answer. – David Lee Commented Feb 10, 2017 at 14:50
Add a comment  | 

2 Answers 2

Reset to default 3

WordPress has an Import/Export tool, but it doesn't works with nav menus only, the "All Content" option will export the menus too, but with everything else that is in your site (including posts/pages in the trash) you can try this plugin so the Menu option shows in the Export page.

You can use the tool from this site, https://caskispace/wp-export-file-parser/

It's not perfect but it does the job and can save a lot of time and effort. If it wasn't able to get the URL for a particular menu item it says so so you can update manually. As for the menu structure and everything it works really well.

本文标签: importExport navigation menu