WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
up vote 0 down vote accepted

Most 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.

share|improve this answer
That worked! I contacted my host, and they made a php.ini file that I can change myself. Then I put max_input_vars = 3000 in that file, and now I can have more pages :) So thanks again, this was very helpful! :) – Marteens Jun 18 '14 at 14:13

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.