Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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

1 Answer 1

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 at 14:13

Your Answer

 
discard

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.