Adding WordPress 3.0 Menu support to your older site

I have come across this a few times when updating older sites to WordPress 3.0 that the fancy new menu system in WP3.0 doesn’t work. Fortunately, this is an easy fix.

First off, you will be editing your functions.php file, so make a backup!

Now, add this code to your funtions.php file:

add_action( ‘init’, ‘register_my_menus’ );
function register_my_menus() {
register_nav_menus(
array(
‘menu-1’ => __( ‘Menu 1’ ),
‘menu-2’ => __( ‘Menu 2’ )
)
);
}

You can name the menu’s whatever you like. ie Primary, Secondary.

Next step is to open your header.php file and replace what you have with this new code:

‘menu-1’ ) ); ?>

For me, I was using pixopoints multi level plugin, so I simply replaced that code with the call above.

Now you are free to build your menu’s using the advanced features of wp3.0

Testing out Twitter Tools

By Dave Fogel | January 21, 2011

This program will auto post your wordpress blog to your twitter account.

Testing out wordbooker

By Dave Fogel | January 21, 2011

Testing the wordbooker plugin.

Getting WordPress to install and work on an IP

By Dave Fogel | January 12, 2011

If you have a reseller account, and you want to work on a live copy of a site, then there are a few keysteps you need to take for it to work. (you could always run it on your HD instead) So let’s say you have a client with a site called www.netviperinteractive.com and you…

Posted in

Dave Fogel

Leave a Comment