[wp-trac] [WordPress Trac] #14684: Needed: Maximum number of menu items
WordPress Trac
wp-trac at lists.automattic.com
Tue Aug 24 19:27:30 UTC 2010
#14684: Needed: Maximum number of menu items
-----------------------------+----------------------------------------------
Reporter: Otto42 | Owner:
Type: feature request | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Menus | Version:
Severity: normal | Keywords:
-----------------------------+----------------------------------------------
When recoding Matt's matala theme to support many of the newest features
of WordPress, I discovered that there is no easy way to limit the number
of menu items displayed by wp_nav_menu (and by extension, wp_page_menu or
wp_list_pages).
This makes it difficult when you're using a menu design that is very
limited in space like matala is. It would be nice if there was a way to
simply send "max_items" or "number" or something to any of those three
functions, to make it stop after displaying some number of menu items.
It would be super nice if this was tied back into the menus system and it
wouldn't allow you to create that many menu items in the first place. This
is optional though, just the max_items parameter would be super-useful.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/14684>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list