Hi @androthemes,
Sorry for the late reply…
I’ve been debugging the issues described above and I think I know why some of the menu items are not imported correctly.
If you look at the Theme Test XML file you will see that there are two menu items with the same guid/post_id: 1643
. Those are both menu items, but the first in the XML file is the menu item for the “All Pages Flat” menu and the second one is the menu item for the “All Pages” menu.
The first menu item with the post ID of 1643
is imported OK, but the second one is skipped because the importer looks at the list of already imported post_ids and it sees that this post was already imported, even though it belongs to another menu item.
I have no idea how this is possible. Two menu items, belonging to different menus have the same post ID. They do point to the same page (post id: 703, but that is noted in the _menu_item_object_id
meta data of the menu item, so the post IDs of the menu items should not be the same).
I tested: exported full WP content on a couple of WP sites with two menus that have at least one same page menu item in them, and I could not get the menu items that point to the same page to have the same post ID…
This is really strange. Was there a WP export bug in the previous versions of WP?
Could you please check your import XML file if yours has the same issue?
First, do you have multiple menus to import?
Do these menus use at least one menu item that is pointing to the same page/post?
In your XML file search for the page (menu item) that is used in multiple menus. Get the post id for this page and search the file for that ID. For the XML <item>
where this page ID is found, check if it is a menu item: has nav_menu_item
post_type. Check the ID of this menu item. Search for that menu item iD and see if there is another XML item with the same ID.
Or you can send me your import XML file and I can take a look.
Let me know how it goes.
Take care!