Make WordPress Core

Opened 2 years ago

Last modified 2 years ago

#55841 new defect (bug)

wp_get_nav_menu_items doesn't work properly

Reported by: andreamarrano's profile andreamarrano Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 6.0
Component: Menus Keywords: reporter-feedback
Focuses: ui Cc:


Function "wp_get_nav_menu_items" doesn't work correctly, when you try to retrieve a list of terms for a specific menu using slug returns all pages available.

Attachments (2)

list-menu-problem.png (70.3 KB) - added by andreamarrano 2 years ago.
list-menu-item.png (65.5 KB) - added by andreamarrano 2 years ago.

Download all attachments as: .zip

Change History (4)

2 years ago


2 years ago


#1 @peterwilsoncc
2 years ago

Hi @andreamarrano and welcome to trac!

I am having trouble reproducing your report. Are you able to test on a site running a default theme (such as Twenty Twenty-One) with all plugins disabled?

If you are calling wp_get_nav_menu_items() with the second parameter, $args, set are you able to provide a code sample too?

#2 @sabernhardt
2 years ago

  • Keywords reporter-feedback added; needs-patch removed
Note: See TracTickets for help on using tickets.