Needed: Maximum number of menu items
|Reported by:||Otto42||Owned by:|
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.