Two days ago I decided to add three more pages to the menu on my site. I already had like 140 pages in the menu, so this is something I know how to do. But I hadn't done it in some months, so maybe something has changed.
Anyway, when I pressed "save menu", two thing happened.
- All pages after page number 89 (yes, I have counted) got deleted from the menu. In fact, on my site you can see that the right part of my menu is all empty.
- The menu was no longer the primary menu, so I had to go back in and save it as primary menu again.
So now I have a menu with only 89 pages. If I add a page number 90, it disappears when I press save menu. And besides I will have to go in and save the menu as primary menu again. If I add a page called A as page number 90, and then switch place with another page called B (so the page B now is number 90), then it's the page B that disappears when I press save menu. So all pages after page 89 gets deleted from the menu when I press save menu. That's a bit frustrating. Why is this happening? What can I do?
Two days ago I decided to add three more pages to the menu on my site. I already had like 140 pages in the menu, so this is something I know how to do. But I hadn't done it in some months, so maybe something has changed.
Anyway, when I pressed "save menu", two thing happened.
- All pages after page number 89 (yes, I have counted) got deleted from the menu. In fact, on my site you can see that the right part of my menu is all empty.
- The menu was no longer the primary menu, so I had to go back in and save it as primary menu again.
So now I have a menu with only 89 pages. If I add a page number 90, it disappears when I press save menu. And besides I will have to go in and save the menu as primary menu again. If I add a page called A as page number 90, and then switch place with another page called B (so the page B now is number 90), then it's the page B that disappears when I press save menu. So all pages after page 89 gets deleted from the menu when I press save menu. That's a bit frustrating. Why is this happening? What can I do?
Share Improve this question asked Jun 9, 2014 at 11:30 MarteensMarteens 33 bronze badges 1- 2 Possible duplicate of Menu limit, cannot add new menu items – T.Todua Commented Oct 18, 2016 at 21:04
1 Answer
Reset to default 1Most likely explanation is that you've hit a PHP limit here - namely max_input_vars.
A more thorough explanation can be found here.
The solution is not inside WordPress I'm afraid, you're gonna have to venture into your site's PHP settings.
Or, of course, reorganize your menus into something more manageable.