SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Member
    Join Date
    Feb 2011
    Posts
    8
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Multiple Navigation Menu Question

    I am attempting to edit a sidebar menu that has multiple navigation menu options. I need to add additional navigation menus. I have created the menus but need to enter them here in the sidebar.php file. The question I have is how do I know what numeric value to add in the part that says if (is_tree('117')), for example, for the new menu? I don't know where to look to find the number corresponding to the menu I have created.

    Thank you in advance for your assistance.

    KC
    *************

    <?php
    /**
    * The Sidebar containing the primary and secondary widget areas.
    *
    * @package WordPress
    * @subpackage Twenty_Ten
    * @since Twenty Ten 1.0
    */
    ?>
    <div id="primary" class="widget-area" role="complementary">

    <?php

    if (is_tree('117')) {
    wp_nav_menu( array( 'theme_location' => 'laurel' ));
    }
    else if (is_tree('115')) {
    wp_nav_menu( array( 'theme_location' => 'prince_georges' ));
    }
    else if (is_tree('119')) {
    wp_nav_menu( array( 'theme_location' => 'bowie' ));
    }
    else if (is_tree('3743')) {
    wp_nav_menu( array( 'theme_location' => 'press_room' ));
    }
    else if (is_tree('4904')) {
    wp_nav_menu( array( 'theme_location' => 'midwifery' ));
    }
    else if (is_tree('5182')) {
    wp_nav_menu( array( 'theme_location' => 'residency_program' ));

  2. #2
    SitePoint Enthusiast
    Join Date
    Jul 2009
    Posts
    26
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    That would be your id. If you mouse over a post or page or tag or category, it will show in your browser. Like this on chrome... https://skitch.com/oscarg/8797y/post...aker-wordpress

    notice I'm on posts, and mousing over the title pops up a long url on the bottom left. there's the ID. Firefox shows it somewhere else but you just have to mouse over and puse.

    You could also install the plugin called "simply show id" and it will show you the id as a new column in your list pages.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •