O'Reilly logo

WordPress 3 Complete by April Hodge Silver

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Enabling a menu in your theme

As of WordPress 3, users can now control more easily what appears in menus. Instead of having to show "all pages" in the menu, you can choose to show a selection of pages and/or categories, and/or other options (as we saw in Chapter 4).

Because we used the wp_nav_menu() function in the header of the site (in the file header.php), if the user creates a menu in Appearance | Menus, the first menu they create will show up in that spot.

For example, here is the Muffin Top theme with the menu I created in Chapter 4:

Enabling a menu in your theme

It looks a little like a disaster, but that just means I need to clean up my CSS to allow for subpages. Another ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required