Have you created a lot of categories and subcategories, and when you want to add them to a Menu, the hierarchy does not show properly causing you a major pain? Here’s the solution…
Download and edit a copy of this file.
/wp-admin/includes/nav-menu.php
line: 804
change this line:
// paginate browsing for large numbers of objects
$per_page = 50;
to this:
// paginate browsing for large numbers of objects
$per_page = 250;
then you increased the number of categories per page, so categories should be loaded in one page.
line: 804
change this line:
// paginate browsing for large numbers of objects
$per_page = 50;
to this:
// paginate browsing for large numbers of objects
$per_page = 250;
then you increased the number of categories per page, so categories should be loaded in one page.
If count of your categories is more than “250” then change it.
NOTE: In the file I downloaded it was not on line 804. I did a search for $per_page and changed two instances and changed them both to 250. My menu’s are perfect now.