Make WordPress Core

Opened 3 years ago

Last modified 3 years ago

#53500 new defect (bug)

Searching for Pages & Posts when adding Menu items isn't working correctly

Reported by: leecollings's profile leecollings Owned by:
Milestone: Awaiting Review Priority: normal
Severity: major Version: 5.7.2
Component: Menus Keywords:
Focuses: Cc:


I'm completely amazed that this hasn't been raised enough times or has more of an online presence because it's causing a huge issue for me right now.

I have over 120 pages for one site, and I want to find one of these pages and add it as a menu item.

I know the title of the page, but when I type this into the search field for adding a page to a menu, loads of other pages are displayed, but none relating to what I've typed, and not the one I've typed it (I've typed in the title EXACTLY as it is named on the page).

How on earth is the search algorithm for the menu page search working exactly? I would expect this page to be shown here... but for some reason it's not, and neither are a few other pages I type.

I have no idea why it's showing the pages that are showing up because there are no keywords that I've typed in, nor are they relevant at all.

If I go to the Pages screen and search there, it finds it fine.

I am completely unable to add pages to my menu because of this, please can someone look into this and confirm there is something wrong here (I cannot see how I'm not doing this right, or how this could be expected to perform any other way).

Attachments (2)

Screenshot 2021-06-24 at 14.02.57.png (41.2 KB) - added by leecollings 3 years ago.
Searching for 'Being a Clairvoyant' page when adding a new menu item
Screenshot 2021-06-24 at 14.03.53.png (223.2 KB) - added by leecollings 3 years ago.
Same search displaying expected page when searching Pages

Download all attachments as: .zip

Change History (4)

3 years ago

Searching for 'Being a Clairvoyant' page when adding a new menu item

3 years ago

Same search displaying expected page when searching Pages

#1 @leecollings
3 years ago

When searching the internet I also found this which reports the same thing (from two years ago).

#2 @cynops
3 years ago

I have noticed the same issue multiple times on a site with 250+ pages. I'm working in version 5.8.

For example, we have a page where the page title is Contact ABCD, and the slug is contact-abcd. When searching for this page to add it to the menu, the word contact doesn't bring it up. Nor does contact ABCD.

I did find two workarounds. One is finding it in the View All list. The other is to put the query in quotes, "contact ABCD".

Note: See TracTickets for help on using tickets.