• Resolved A.

    (@anke16)


    Hello there,

    we updated WP to v5.9 and Nav Menu Roles to v2.0.2. But the “Display Mode” option is showing up twice for a menu item.

    We already spent some time investigating the cause but were unable to determine what the issue is.

    Sincerely,
    Anke Altmann

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author HelgaTheViking

    (@helgatheviking)

    Cannot reproduce this so it’s likely a code conflict. You’ll need to go through some basic debugging steps. Please try disabling other plugins one at a time. And also switching to a default theme. Presumably either a plugin or your theme is interfering… likely culprit would be any code trying to also add fields to the menu items. They may still be using outdated ways of doing so and might need to update to adding fields via wp_nav_menu_item_custom_fields.

    You can use either staging or health check to do this without impacting your live site:
    https://www.ads-software.com/plugins/wp-staging/
    https://www.ads-software.com/plugins/health-check/

    Thread Starter A.

    (@anke16)

    Hi,
    Thanks for your reply. We will have a further look into it, thanks for your suggestions.

    Kind regards,
    Anke

    Hello did you find a solution for this?

    File: wp-content/plugins/nav-menu-roles/inc/class.Walker_Nav_Menu_Edit_Roles_4.7.php

    Comment out: do_action( ‘wp_nav_menu_item_custom_fields’, $item_id, $item, $depth, $args );

    On line 66.

    Worked for me ??

    Plugin Author HelgaTheViking

    (@helgatheviking)

    What version of WP are you using? The wp_nav_menu_item_custom_fields hook was finally added to WP core and so the custom walker file you reference should not even be in use.

    Commented out lines will be lost on upgrade (not that I have any updates in the queue at the moment).

    Please try disabling other plugins one at a time.
    And also switching to a default theme.

    I would still need to know what the conflict is to advise further.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Display Mode Options shown twice’ is closed to new replies.