Make WordPress Core

Opened 3 years ago

Closed 3 years ago

#53736 closed defect (bug) (duplicate)

Increase the number of results in Appearance > Menus > Add menu items > Pages > Search

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

Description

Often when searching for a page to be added to the main menu, the page searched for is not listed. However, if the posts_per_page parameter on line 82 of wp-admin/includes/nav-menu.php is increased to say 50, then the page searched for shows up. Therefore I am requesting that the posts_per_page parameter is made into a user defined option so that it can be set to any value OR make the search feature more relevant so that it displays the page being searched for. The result shown are often irrelevant to the search parameter.

For example, If I have a page with the the word 'Summer' in the title and I search for 'Summer' from over 700 pages, that particular page does not show up in the results of the search in the first 10 items. In fact none of the first 10 items has anything to do with 'Summer'. The page only shows up if I increase the number of search results.

Change History (2)

#1 @andraganescu
3 years ago

Have not tested but I was thinking that it looks like a better solution here is to improve how we search and our relevance sorting, rather than increasing the number of results to find manually the thing we're after?

#2 @SergeyBiryukov
3 years ago

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

Hi there, welcome back to WordPress Trac!

Thanks for the report, we're already tracking this enhancement in #47555.

Note: See TracTickets for help on using tickets.