Skip to content

Import meta for nav_menu_item posts #77

Open

Description

@helgatheviking

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

Activity

  1. ryross commented on Sep 6, 2020

    @ryross

    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.

  2. helgatheviking commented on Sep 6, 2020

    @helgatheviking
    Author

    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...

  3. added a commit that references this issue on Jan 29, 2022
    6d56a2c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions