peps03
asked on
How to show another menu on a Wordpress page than the standard?
Hi,
I'm modifying a Wordpress theme. The standard menu should show in case A and a newly created menu should show in case B. I already hard coded this in the theme, but how to call the second menu i created in the admin?
This calls the standard menu: wp_nav_menu($args);
How to change it to another menu? Calling it by name would be easy i think.
How to do that?
Thanks!
I'm modifying a Wordpress theme. The standard menu should show in case A and a newly created menu should show in case B. I already hard coded this in the theme, but how to call the second menu i created in the admin?
This calls the standard menu: wp_nav_menu($args);
How to change it to another menu? Calling it by name would be easy i think.
How to do that?
Thanks!
ASKER
Thank for your reply Jason!
I did! But it's not really clear to me how to call another menu based on its name (or something else) instead of the standard menu.
Thanks
I did! But it's not really clear to me how to call another menu based on its name (or something else) instead of the standard menu.
Thanks
ASKER
Nobody can help?
Would be really great! Easy question for a Wordpress expert!
Thanks!
Would be really great! Easy question for a Wordpress expert!
Thanks!
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thank you! Got it working!
And yes i know how it works.
Of course i look things up myself before asking it here. Normally a quick Google provides the answer in seconds. So i did come across the page you mentioned but didn't fully understand it. That's why i asked.
And yes i know how it works.
Of course i look things up myself before asking it here. Normally a quick Google provides the answer in seconds. So i did come across the page you mentioned but didn't fully understand it. That's why i asked.
http://codex.wordpress.org/Function_Reference/wp_nav_menu