Increase the Menu Limit on your WordPress Navigation Menu

Increase Menu Limit in WordPress

If you are trying to add another link or page to your WordPress menu and it simply doesn’t save then it is most likely that you have hit the limit for your WordPress navigation menu. Now this limit is actually due to a setting on your server, not WordPress itself. Follow the instructions below to increase the menu limit on your WordPress menu.

Step 1

There are two ways to change this. One is via your php.ini file, but that will affect your entire server. So I am going to show you how to do this with your .htaccess file. Please note, if virtual hosts are setup the “allow overide” must be enabled for the .htaccess trick to work. So first open up your .htaccess file. It should be located in the root of your site.

htaccess file

Step 2

By default your .htaccess will most likely look like this below:

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress

We are going to add a single line towards the top.

php_value max_input_vars 2000

So afterwards your .htaccess file should look like this.

# BEGIN WordPress
php_value max_input_vars 2000
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress

Step 3

Now save your .htaccess file and re-upload it to your server. You should now be able to add more menu items to your WordPress navigation menu.

As always feel free to leave your comments below!

Get More Stuff Like This

Marketing, WordPress, Blogging Tips, SEO and Reviews, once a week.

Thank you for subscribing.

Something went wrong.

5 thoughts on “Increase the Menu Limit on your WordPress Navigation Menu”

    • Hi Chris… If you are having trouble with this I would recommend reverting back to your original .htaccess file and asking your web host to update it for you. It could be they are setting it server side.

    • I would check with your web host if you need help increasing this value. Could be your configuration is setup slightly different. Thanks

Leave a Comment