Get Menu – Reuisng menu code
-
Hopefully easy question. I would like to ‘reuse’ my global navigation which uses the wp_nav_menu code:
<div id="menusimple"> <?php wp_nav_menu( array( 'theme_location'=>'primary-menu', 'container'=>'menusimple', 'container_class'=>'menu', )); ?> </div>
Rather than repeating this code in multiple templates, is there a built in tag such as get_header or get_sidebar to call it up?
Something along these lines: https://codex.www.ads-software.com/Stepping_Into_Template_Tags
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Get Menu – Reuisng menu code’ is closed to new replies.