Skip to content

Menu items at 3rd level and deeper don't respect the order set in WordPress #948

@o-lie

Description

@o-lie

Describe the bug

What's happening:
When you reorder menu items in the WordPress admin, the changes are reflected correctly for level 1 and level 2 items — but level 3 (and deeper) items always appear in the wrong order, no matter what you set in WordPress.

Expected:
The menu renders in the same order as configured in WordPress, at all nesting levels.

Steps to Reproduce

  1. Create a nav menu with at least 3 levels of nesting
  2. Add a few items at the 3rd level
  3. Reorder them in the WordPress menu editor and save
  4. Check the rendered menu — the order hasn't changed

Screenshots, screen recording, code snippet

No response

Environment information

No response

WordPress information

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions