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

PPC vs SEO

By Dave Fogel | February 27, 2010

One of the most common questions we get asked is what is more important, Pay-Per-Click or Search Engine Optimization? Here is how we see it: PPC: – Ads are online almost immediately – Start getting ROI sooner – Great for time sensitive promotions – Great for testing different words, phrases and products – Quickly build…

Posted in

Dave Fogel

Leave a Comment