[wp-trac] [WordPress Trac] #19499: Allow wp_nav_menu to return just the links (no <li> tags)
WordPress Trac
wp-trac at lists.automattic.com
Sat Dec 10 17:19:32 UTC 2011
#19499: Allow wp_nav_menu to return just the links (no <li> tags)
-------------------------------+------------------------------
Reporter: nohalfpixels | Owner: nohalfpixels
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Menus | Version: 3.2.1
Severity: normal | Resolution:
Keywords: reporter-feedback |
-------------------------------+------------------------------
Changes (by TobiasBg):
* keywords: => reporter-feedback
Comment:
You could use {{{wp_get_nav_menu_items()}}} to get an array with all the
elements, without formatting. That way, you could create your own HTML
around it, e.g. like they do in http://digwp.com/2011/11/html-formatting-
custom-menus/
Does that maybe solve your problem?
--
Ticket URL: <http://core.trac.wordpress.org/ticket/19499#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list