Posted By

scottnix on 10/06/11


Tagged

wordpress menus thematic


Versions (?)

Add Additional Menus to Wordpress Theme


 / Published in: PHP
 

Add additional custom menus to Theme Location slot in admin.

  1. // register two additional custom menus
  2. function register_menus() {
  3. if (function_exists( 'register_nav_menu' )) {
  4. register_nav_menu( 'secondary-menu', 'Secondary Menu' );
  5. register_nav_menu( 'tertiary-menu', 'Tertiary Menu' );
  6. }
  7. }
  8. add_action('init','register_menus');

Report this snippet  

You need to login to post a comment.