Cameron
Cameron

Reputation: 28783

Export WordPress Nav Menus

I have a WP 3.0 site running locally that has an epic menu of about 100 items, I need to export it so I can use it on the live site. But from what I can tell the Export function in WordPress doesn't back up your menus. How can I do it?

Upvotes: 4

Views: 12549

Answers (3)

Ollo
Ollo

Reputation: 49

For a recent build I was forced to manually migrate the :

  • wp_terms
  • wp_term_taxonomy
  • wp_term_relationships

doing this manually perfectly copied my menu's to the new site.

Upvotes: 3

Kevinleary.net
Kevinleary.net

Reputation: 9670

It's not the items that are the issue, it's actually the order that isn't stored.

The menu order is stored in the wp_posts table, under the menu_order field. This field isn't currently included in the WordPress XML Import/Export. There's a trouble ticket in the Trac project with a temporary patch to fix this if you need this immediately, I would suspect that this will be included in the next release:

I hope that helps!

Upvotes: 2

markratledge
markratledge

Reputation: 17561

Menu settings are stored in the options table. Dump that table and take a look at how they are structured.

Upvotes: 0

Related Questions