Make WordPress Core

Opened 14 years ago

Last modified 5 years ago

#12934 assigned enhancement

Allow a menu to be added as a menuitem to be a submenu.

Reported by: mikeschinkel's profile mikeschinkel Owned by:
Milestone: Priority: normal
Severity: normal Version: 3.0
Component: Menus Keywords: needs-patch
Focuses: administration Cc:


Add capability to add a menu as a menuitem to be a submenu thus allowing multiple menu items to share the same submenus.

See reference in April 8 devchat:

Change History (7)

#2 @ptahdunbar
14 years ago

  • Component changed from General to Menus
  • Milestone changed from Unassigned to 3.1
  • Owner set to ryan
  • Type changed from defect (bug) to enhancement
  • Version set to 3.0

#3 @nacin
14 years ago

  • Milestone changed from Awaiting Triage to Future Release

#4 @Faison
10 years ago

I know this is old, but I thought I'd jump in and say that I've needed this exact feature on a few sites now. At first I felt embedding submenus would just be nice to have, but after a while I received a nice message: "You are approaching the post variable limit imposed by your server configuration." Embedding submenus became a requirement for me.

So I created my own plugin to allow Nav Menus to be used as Nav Menu Items, it's called Navception. I don't know if pasting a link to that plugin is good enough to close this ticket, but I would still like to see Menus as Nav Menu Items in core.

While I was writing Navception, I ran into two things that I had to ignore or write elaborate work arounds for, so I feel we'd need to address these before being able to add Menus as Menu Items. Those two issues are:

1 - WordPress doesn't allow you to completely change the contents of an expanded Menu Item while editing menus (explanation below)
2 - I had to add code to strip out the start and end <li> tags that are hardcoded in Walker_Nav_Menu, so that I didn't end up with a structure like <li><li><!-- sub menu --></li></li>
As you can see from that screenshot, nothing useful except the "Remove" link is displayed. It would make much more sense to be able to gut out that content and replace it with a small tree view of the items included in that submenu, but currently that content is pretty hardcoded in wp-admin/includes/nav-menu.php

Either way, let me know if I can help as I would definitely enjoy helping!


#5 @ryan
10 years ago

  • Owner ryan deleted
  • Status changed from new to assigned

#6 @chriscct7
9 years ago

#12900 was marked as a duplicate.

#7 @chriscct7
9 years ago

  • Focuses administration added
  • Keywords needs-patch added
Note: See TracTickets for help on using tickets.