In this tutorial I will show you how to exclude the pages in menu.
Normally when we are creating wordpress theme for showing the pages we code as follows
<?php wp_page_menu(‘show_home=1&menu_class=page-navi&sort_column=menu_order’); ?>
As per this code all pages will get displayed in menu. For showing selected pages check the page id.
and then use following code.
<?php wp_page_menu(‘show_home=1&exclude=5,9,23&menu_class=page-navi&sort_column=menu_order’); ?>
You are able to see the I added the exclude parameter in wordpress method.
Your selected page id for excluding from menu, you need to just put there with commma sepreated.
Put this code in your header.php file for shoing the menu. You are able to exclude the pages from wordpress menu
Incoming search terms:
- menu css
- css menu
- wordpress menu
- where to put the exclude pages code for wordpress
- exclude page wordpress without plugin
- menu without a page wordpress
- wordpress plugin page without menu






interesting blog. It would be great if you can provide more details about it. Thanks you
I definitely like browsing on this blog, particularly this publication
Of course, what a great site and informative posts, I will add backlink – bookmark this site? Regards, Reader
I’ve been checking your blog for a while now, seems like everyday I learn something new
Thanks
Great read. Thanks for the info!
Hello, this is my first time i visit here. I found so many interesting in your blog especially on how to determine the topic. keep up the good work.
I’ve just started off a blog, the knowledge you give on this site has aided me extremely. Thank you for all your time & work.