In this tutorial I will show you how to show the only selected 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&include=5,9,23&menu_class=page-navi&sort_column=menu_order’); ?>
You are able to see the I added the include parameter in wordpress method. Your selected page id you need to just put there with comma separated.
Put this code in your header.php file for showing the menu. Only selected pages will be shown on wordpress menu.





This post makes a lot of sense !
I’ve been checking your blog for a while now, seems like everyday I learn something new
Thanks
Of course, what a great site and informative posts, I will add backlink – bookmark this site? Regards, Reader
I REALLY liked your post and blog! It took me a minute bit to find your site…but I bookmarked it. Would you mind if I posted a link back to your post?
Interesting read, perhaps the best article iv’e browse today. We learn everyday cheers to you!
I was just having a conversation over this I am glad I came across this it cleared some of the questions I had.
Interesting read, perhaps the best article iv’e browse today. We learn everyday cheers to you!
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.
Good! Thank you! I always wanted to write in my site something like that. Can I take part of your post to my blog?