Support » Fixing WordPress » Menus, Custom Menus, Auto add Items

  • Hi there, I’m developing a theme where I have a footer with several columns, each column will have a list of items, each column menus needs to be updatable from the menus option on wp admin, so I created the section on functions.php that calls the menus and also added each menu on the footer.php document, something like:

    <?php wp_nav_menu( array('menu' => 'f-1', 'menu_class' => '', 'container' => 'nav' )); ?>
    <?php wp_nav_menu( array('menu' => 'f-2', 'menu_class' => '', 'container' => 'nav' )); ?>
    <?php wp_nav_menu( array('menu' => 'f-3', 'menu_class' => '', 'container' => 'nav' )); ?>
    <?php wp_nav_menu( array('menu' => 'f-4', 'menu_class' => '', 'container' => 'nav' )); ?>

    [Please be sure to use the code buttons or backticks when posting code here]

    The thing is, when I place the menus using the theme menus area it prints automatically on my footer the column with 2 options, home and about, the “Automatically add new top-level pages” is not selected so not sure what’s going on, anybody with the same problem?



Viewing 1 replies (of 1 total)
  • Forgot to add, this is how I call the menus:

    add_theme_support('nav-menus'); if ( function_exists('register_nav_menus')) {
    register_nav_menus( array(
    'main' => 'Main Nav',
    'footer-noticias-financieras' => 'Footer Noticias Financieras',
    'footer-otras-publicaciones' => 'Footer Otras Publicaciones',
    'footer-foro' => 'Footer Foro'
    ) );
Viewing 1 replies (of 1 total)
  • The topic ‘Menus, Custom Menus, Auto add Items’ is closed to new replies.