[wp-trac] [WordPress Trac] #14235: Add ability to remove ul tag from wp_nav_menu result

WordPress Trac wp-trac at lists.automattic.com
Thu Jul 8 13:11:28 UTC 2010


#14235: Add ability to remove ul tag from wp_nav_menu result
-------------------------+--------------------------------------------------
 Reporter:  spangborn    |       Owner:  spangborn      
     Type:  enhancement  |      Status:  new            
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  Template     |     Version:  3.0            
 Severity:  normal       |    Keywords:  wp_nav_menu    
-------------------------+--------------------------------------------------

Comment(by filosofo):

 I agree, and I think the way to do it is to be able to pass element
 patterns.  So for example something like this, perhaps:

 {{{
 $args = array(
    'items_wrap' => '<ul id="%1$s" class="%2$">%3$s</ul>',
 );
 wp_nav_menu( $args );
 }}}

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


More information about the wp-trac mailing list