Posted By

thesmu on 05/29/13


Tagged

menu wordpress custom


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

qing606


custom menus in wordpress


 / Published in: PHP
 

register custom menus

  1. register:
  2.  
  3. <?php
  4. register_nav_menus( array(
  5. 'primary' => __( 'Primary Navigation', 'primarynav' ),
  6. 'secondary' => __( 'Secondary Navigation', 'secondarynav' ),
  7. 'footer' => __( 'Footer Navigation', 'footernav' ),
  8. ) );
  9.  
  10. ?>
  11.  
  12.  
  13. display:
  14.  
  15. <?php wp_nav_menu(array( 'theme_location' => 'footer')); ?>

Report this snippet  

You need to login to post a comment.