[wp-trac] [WordPress Trac] #13910: Get Menu name with wp_nav_menu()

WordPress Trac wp-trac at lists.automattic.com
Tue Jun 15 19:17:20 UTC 2010


#13910: Get Menu name with wp_nav_menu()
-----------------------------+----------------------------------------------
 Reporter:  jowo             |       Owner:                        
     Type:  feature request  |      Status:  new                   
 Priority:  normal           |   Milestone:  3.0                   
Component:  Menus            |     Version:  3.0                   
 Severity:  normal           |    Keywords:  wp_nav_menu, menu name
-----------------------------+----------------------------------------------
 There is no way to get the actual "Menu name" in wp_nav_menu()

 For example if you want to create a left sidebar menu you want a header to
 go with it. In previous versions you could do use wp_list_pages() with
 "title_li".

 With wp_nav_menu() you have to hard code <h3>Static menu name</h3> into
 the template before calling the function.

 If you could get the "Menu name" as defined in backend interface from the
 wp_nav_menu() it would create the menu title automatically.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/13910>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list