wordpress-importer icon indicating copy to clipboard operation
wordpress-importer copied to clipboard

Import meta for nav_menu_item posts

Open helgatheviking opened this issue 5 years ago • 2 comments

The importer has never included menu item post meta. But now that WordPress 5.4 finally supports custom fields via the wp_nav_menu_item_custom_fields it would be a good time to add support for importing/exporting menu meta.

Historical reference :) https://wordpress.org/support/topic/failure-to-import-post-meta-for-nav-menu-item/ https://plugins.trac.wordpress.org/ticket/1678

helgatheviking avatar May 26 '20 14:05 helgatheviking

Wow. Your original post was 7 years ago! I just got bit by this and would love for all post meta for nav_menu_items to be imported.

ryross avatar Sep 06 '20 05:09 ryross

It only took 8 to get the wp_nav_menu_item_custom_fields hook in, so there's still a year to go here.... :) If you need nav meta to be imported I added a custom importer to my Nav Menu Roles plugin, which should help. It's been ages since I tested it though...

helgatheviking avatar Sep 06 '20 22:09 helgatheviking