[wp-trac] [WordPress Trac] #13669: Nav menu parameters not working

WordPress Trac wp-trac at lists.automattic.com
Tue Jun 1 08:55:03 UTC 2010


#13669: Nav menu parameters not working
--------------------------+-------------------------------------------------
 Reporter:  vteixeira     |        Owner:            
     Type:  defect (bug)  |       Status:  closed    
 Priority:  normal        |    Milestone:            
Component:  Menus         |      Version:  3.0       
 Severity:  normal        |   Resolution:  worksforme
 Keywords:                |  
--------------------------+-------------------------------------------------
Changes (by ocean90):

  * status:  new => closed
  * resolution:  => worksforme
  * milestone:  3.0 =>


Comment:

 Hi, there are three parameters:
  - container: default is ''div'', if it's empty ''container_class'' will
 not work
  - container_class: class for the ''container'' parameter
  - container_id: Not for the ''container'' parameter. It's for the list,
 example: ''<ul id="nav">''

 The HTML Output of:
 ''wp_nav_menu( array( 'menu' => 'top', 'sort_column' => 'menu_order',
 'container_id' => 'nav', 'container_class' => 'menu-header' ) )''[[BR]]
 is:
 {{{
 <div class="menu-header">
   <ul class="menu" id="nav">
     <li class="menu-item menu-item-type-custom" id="menu-item-10">
       <a href="http://google.de">gg</a>
     </li>
   </ul>
 </div>
 }}}

 Maybe you can update to the latest nightly and then check it again. If
 your problem still exists you can re-open.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/13669#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list