• I will skip the part of strong language of you forcing aautomatic major update to WP 6.0 but lets get into it:

    after the update my menus stopped to work – only “Add item” instead of whole menu is shown.
    Just because of the update nothing else was done (automatically without my attention obviously).

    I am using in my own theme a “wp_nav_menu” called for a menu name.

    `wp_nav_menu( array(
    ‘menu’ => ‘Menu’,
    ‘depth’ => 5,
    ‘container’ => ‘ul’,
    ‘container_class’ => ”,
    ‘menu_class’ => ‘navbar-nav ml-auto my-2 my-lg-0 ‘,
    ‘fallback_cb’ => ‘wp_bootstrap_navwalker::fallback’,
    ‘walker’ => new wp_bootstrap_navwalker()
    ));

    calling menu by name or by theme location completely stopped to work.

    – menu calling by name does not work, no entries
    – calling menu by theme_location no entries
    – if I delete all atributes then it returns all possible menu items ignoring created menus
    – fallback and walker itself when enabled then returns no entry

    FIXED by :
    – force downgrade to 5.9.3
    This itself does not fix this, I needed to switch to another theme 2020 and then back to my and it was back again

    Please fix this ASAP

    • This topic was modified 2 years, 5 months ago by xenoncz.

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • I will skip the part of strong language of you forcing aautomatic major update to WP 6.0 but lets get into it:

    WordPress users have always had full control over automatic updates, ever since the feature was introduced.

    I personally test ALL core, theme, and plugin updates in a safe, staging environment before updating live sites.

    Configuring Automatic Background Updates

    Hello, @xenoncz!

    I have the same problem. I used Underscores starter theme as well, but I couldn’t find the reason wp_nav_menu() is simply ignored by WP 6.0.

    I simply returned to 5.9.3 and the menu started to work again.

    Have you studied the problem further?

    Thanks in advance!
    Marco Andrei

    If you are using ‘pre_get_posts’ hook and modifying queries on your site, that might affect the wp_nav_menu() function.

    I am not using underscores but had the same issue and solved it in a similar way mentioned here:
    https://wpml.org/forums/topic/since-update-wp-6-0-menus-are-messed-up-und-untranslatetable/

    In my case, removing one of the processes interacting with queries written in the hook solved the issue.

    • This reply was modified 2 years, 4 months ago by Keishi Asai.

    This is extremely frustrating, as I have dozens of custom themed sites I developed and support, and now all of the sudden I am trapped at WP 5.9.3 in order to edit the navigation. Not a big deal for some sites, but crucial for others.

    For me, wp_nav_menu() *does* work, but I have no way to actually edit the menu, so it is frozen in whatever state it was in when WP 6.0 was installed.

    A ridiculous design decision. Following this thread in case there is more information.

    Hello!

    In my case, I was using pre_get_posts hook to hide some type of posts, as @isheik8 noted.

    I review the function and now everything is working correctly.

    Thanks for the help!

    Saúde!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘WP_NAV_MENU Does not work WP 6.0’ is closed to new replies.