In the members-only forum a user asks:
Hi I’ve created a page template for a new section for a client’s site but want to also have a different menu. For the new page template I just copied page.php and renamed it then will style that, but how do I change the menu it uses? Is this something you could do a tutorial for? Thank you
wp_nav_menu_argsfilter can be used to conditionally change the menu assigned to primary (renamed as
Header Menuin Genesis Sample) theme location. Here's a sample custom Page template file having the code:
To view the full content, please sign up for the membership.
Already a member? Log in below or here.