/ Published in: PHP

Code for enabling custom menus in your theme in WordPress 3. This code is from http://justintadlock.com/archives/2010/06/01/goodbye-headaches-hello-menus
Expand |
Embed | Plain Text
<?php // placed with functions.php add_action( 'init', 'register_my_menus' ); function register_my_menus() { register_nav_menus( 'primary-menu' => __( 'Primary Menu' ), 'secondary-menu' => __( 'Secondary Menu' ), 'tertiary-menu' => __( 'Tertiary Menu' ) ) ); } ?> // placed within themes template where menu should be located
You need to login to post a comment.