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 DISQUS

By Dave Fogel | March 12, 2010

I am testing out the DISQUS (pronounced DISCUSS) commenting system for WordPress.

Converting a site to WordPress

By Dave Fogel | March 3, 2010

So over the last two week, I have spend my free time converting my site over to WordPress. There are several reasons for this. First, I really like the ability to add plug-ins to my site. I also love how easy it is to add new pages and manage the site. There are also the…

Ten tips for passing the new Google Advertising Fundamentals Exam

By Dave Fogel | February 28, 2010

So, you have decided that it is time to finally take the test. What you might not know is that Google JUST changed over to a brand new test. Gone are the days of testing through Prometric. Google now has you download a browser to use that you must take the test with. Now, I…

Posted in

Dave Fogel

Leave a Comment