wp_nav_menu show 1 item only

I was reading WordPress documentation and also trying to find some clear example of how to do this but I couldn’t, sorry if this is posted elsewhere but I did my best trying to find an answer before posting.

My question is simple, if I use the wp_nav_menu function of wp, what should I do in the array or any other place to show one specific element and it’s childs.

So for example, I have a menu Home, About, Services. My question would be how to show only Services for example with it’s childs.

Is that even possible? Thanks in advance.

2 Answers
2

Why would you only want to display one item from a menu of many items? You can create additional menus by registering them in your functions.php file and then associating then in the Appearance -> Menus area of the WP-Admin.

http://justintadlock.com/archives/2010/06/01/goodbye-headaches-hello-menus

Leave a Comment