Make WordPress Core

Opened 9 months ago

Closed 6 months ago

#59081 closed defect (bug) (duplicate)

WordPress does not respect hierarchy when you add multiple items to a menu

Reported by: orloxgr's profile orloxgr Owned by:
Milestone: Priority: normal
Severity: normal Version: 6.3
Component: Menus Keywords:
Focuses: Cc:


When you are in /wp-admin/nav-menus.php
and you select multiple categories
and you click "Add to menu"
The categories will be added but without their hierarchy. Instead they will all be added as top level menu items.

Change History (3)

#1 @SergeyBiryukov
9 months ago

  • Milestone Awaiting Review deleted
  • Resolution set to duplicate
  • Status changed from new to closed

Hi there, welcome to WordPress Trac!

Thanks for the report, we're already tracking this issue in #18282 and #19837.

The first ticket has a plugin to work around the issue until it's fixed: comment:25:ticket:18282.

Another workaround is also suggested in the description of ticket #47639.

#2 @orloxgr
6 months ago

  • Resolution duplicate deleted
  • Status changed from closed to reopened

I am not sure that this is the exact same issue. I am not talking about the display of the hierarchy at the box on the left but about the fact that when you click the Add to menu button it wont add them with hierarchy. The "fix" plugin does not work in this case.

#3 @SergeyBiryukov
6 months ago

  • Resolution set to duplicate
  • Status changed from reopened to closed

Indeed, thanks for pointing that out! Looks like I misread the ticket description.

The issue with keeping hierarchy when adding items to a menu is tracked in #18271, let's continue the discussion there.

Note: See TracTickets for help on using tickets.