I can't get my Custom Menu to appear??
I can't get my Custom Menu to appear?
I've registered the custom menu function in functions.php ...
/**
* add any of your custom functions below this section
*/
if (function_exists('add_theme_support')) {
add_theme_support('menus');
}
I've added the code to Header.php ...
<ul id="nav">
<li class="first"><a href="<?php echo get_option('home')?>"><?php _e('Home','cp'); ?></a></li>
<li><a href="#" onclick="toggle_slide('adv_categories'); return false;"><?php _e('Suburbs','cp'); ?></a><a href="#" onclick="toggle_slide('adv_categories'); return false;"><img src="<?php bloginfo('template_url'); ?>/images/menu_downarrow.gif" width="9" height="5" alt="⇓" class="dropdown" /></a></li>
<?php wp_nav_menu('menu=MainMenu'); ?>
<?php wp_list_pages('sort_column=menu_order&depth=0&titl e_li=0&exclude='.get_option('cp_excluded_pages')); ?>
<?php if (get_option('cp_enable_blog') == 'yes') { ?>
<li><a href="<?php echo CP_BLOG_URL ?>"><?php echo get_cat_name(cp_get_blog_catid()); ?></a></li>
<?php } ?>
</ul>