How to Exclude Pages from the Menu in WordPress

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:

<?php wp_list_pages();?>

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

Recent Articles

How To Check Whether Someone Blocked You On Instagram

All social media platforms including Instagram do not notify people when they get blocked by a user. But when someone’s post and...

Free Apps Make Money through These Innovative Ways

Have you always wondered why are some apps available to you free of cost? If you want to know how apps make...

How To Completely Remove Google Account From Chrome Browser

Google Chrome when used with your personal Google account lets you keep the data in sync with all your devices. Your YouTube...

How To Know If Your Android Smartphone Is Hacked And How To Fix It!

One of the worst nightmares you can ever witness is realizing that your Android Smartphone Is Hacked. Yes, you're allowed to be...

How to Fix Google Drive Not Downloading Files After Zipping

Google Drive is one of the most convenient and easy-to-use file storage services. It allows us to store or host files online,...

Related Stories

Leave A Reply

Please enter your comment!
Please enter your name here