Posted By

nathanbweb on 05/20/11


Tagged

wordpress menus


Versions (?)

WordPress enable custom menus


 / Published in: PHP
 

URL: http://www.devlounge.net/code/how-to-add-support-for-menus-in-your-wordpress-theme

  1. /* support custom menus */
  2. add_action( 'init', 'register_my_menus' );
  3. function register_my_menus() {
  4. register_nav_menus(
  5. array(
  6. 'menu-nav' => __( 'Navigation Menu' )
  7. // ,
  8. //'menu-2' => __( 'Footer Menu' )
  9. )
  10. );
  11. }
  12.  
  13. // then in header.php add:
  14.  
  15. <?php wp_nav_menu( array( 'theme_location' => 'menu-nav' ) ); ?>

Report this snippet  

Comments

RSS Icon Subscribe to comments
Posted By: jam00 on May 20, 2011

a

You need to login to post a comment.