I am looking for a way to include a user managable title in a menu. Ideally, it will take the place of the first <li> object in the output.
Any ideas?
Edit Clarification
I am looking for a way to add a header to a menu list, defined by the given name of the menu in the admin panel.
So, the code should look a little like this:
<ul>
<li class="title"> Menu Name</li>
<li><a href=#>Link</a></li>
<li><a href=#>Link</a></li>
<li><a href=#>Link</a></li>
<li><a href=#>Link</a></li>
</ul>
Edit Further Development
I have a code block for extracting the name of a menu, based on it's location in a theme, but I can't quite get the HTML layout I want (i.e. add the title to the first <li>).
function mf_get_menu_name($location){
if(!has_nav_menu($location)) return false;
$menus = get_nav_menu_locations();
$menu_title = wp_get_nav_menu_object($menus[$location])->name;
return $menu_title;
}
