Often bloggers want to create pages in their weblog, however they don’t need to show them in the menu. In this text we display you ways to exclude pages from the menu in WordPress. This query used to be requested on our twitter profile.
Most of the time the menu is positioned in your sidebar.php however it may be positioned in different recordsdata. Open that record and find the following code:
Replace the following code with:
<?php wp_list_pages(‘exclude=12,14’ ); ?>
Now you’ll be able to exchange the quantity to the web page ID and that web page might not be displayed in the menu. For extra main points see WordPress codex
There could also be a plugin that permits you to do that. It is known as Exclude Pages.
If you’ve a query, use our twitter profile to ask it. We solution all questions