Posted By

redconservatory on 04/02/11


Tagged

wordpress


Versions (?)

Who likes this?

3 people have marked this snippet as a favorite

acousins
hkamci
kopfaction


Wordpress custom menu


 / Published in: PHP
 

  1. Add to functions.php:
  2.  
  3. add_action('init', 'my_custom_menu');
  4.  
  5. function my_custom_menu() {
  6. register_nav_menu('my_menu', ('My Menu'));
  7. }
  8.  
  9. Add to your template:
  10.  
  11. <?php wp_nav_menu(array('menu' => 'my_menu')); ?>

Report this snippet  

You need to login to post a comment.