Family Encyclopedia >> Electronics

How to exclude menu pages in WordPress

Bloggers often need to create pages on their blog, but don't want to display them in the menu. In this article, we show you how to exclude menu pages in WordPress. This question was asked on our twitter profile..

Most of the time the menu is located in your sidebar.php but it can be located in other files. Open that file and locate the following code:

Replace the following code with:

Now you can change the number to the ID of the page and that page will not show up in the menu. For more details see the WordPress codex.

There is also a plugin that allows you to do this. It's called Exclude Pages.

If you have a question, use our twitter profile to ask it. We answer all questions How to exclude menu pages in WordPress