WordPress.org

Support

Support » How-To and Troubleshooting » Error When Implementing the Menu Management System

Error When Implementing the Menu Management System

  • I am trying to add the new menu management system to my theme, but it isn’t working out. Here is what I did.

    1. Added add_theme_support('nav-menus'); to my functions.php file

    2. Added <php wp_nav_menu($args); ?> to header.php where I want the list to appear.

    I then went to Appearance | Menus and created a new menu. So far, so good. The menu shows up and I can customize it without issue. The problem comes in when I delete the menu. Immediately after deletion, the page refreshes and this message appear at the top of the admin area.

    Warning: Invalid argument supplied for foreach() in
    /home/username/public_html/wp-admin/nav-menus.php on line
    251

    I have tried adding this functionality to two different themes and the result is always the same. When I activate Twenty Ten and create/delete a menu this message does not appear.

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Error When Implementing the Menu Management System’ is closed to new replies.
Skip to toolbar