This is my nav header which is no longer working. It’s in the template. The problem is that WordPress didn’t save any of my heirachical structure that I had set up with the menu. It would be nice if I could just put the parent categories in the new 3.0 menu plug-in and it recognized all the children below it and their children. I don’t even see an option for that.
<?php arras_above_nav() ?>
<div id="nav">
<div id="nav-content" class="clearfix">
<div id="searchbar">
<?php include (TEMPLATEPATH . '/searchform.php'); ?>
</div>
<?php
if ( function_exists('wp_nav_menu') ) {
wp_nav_menu( array( 'sort_column' => 'menu_order', 'menu_class' => 'sf-menu menu clearfix') );
} elseif ( function_exists('pixopoint_menu') ) {
pixopoint_menu();
} else { ?>
<ul class="sf-menu menu clearfix">
<li><a href="<?php bloginfo('url') ?>"><?php _e( arras_get_option('topnav_home') ); ?></a></li>
<?php
if (arras_get_option('topnav_display') == 'pages') {
wp_list_pages('sort_column=menu_order&title_li=');
} else if (arras_get_option('topnav_display') == 'linkcat') {
wp_list_bookmarks('category='.arras_get_option('topnav_linkcat').'&hierarchical=0&show_private=1&hide_invisible=0&title_li=&categorize=0&orderby=name');
} else {
wp_list_categories('hierarchical=1&orderby=name&hide_empty=1&title_li=');
}
?>
</ul>
<?php } ?>
<ul class="quick-nav clearfix">
<?php if ($feed == '') : ?>
<li><a id="rss" title="<?php printf( __( '%s RSS Feed', 'arras' ), esc_html( get_bloginfo('name'), 1 ) ) ?>" href="<?php bloginfo('rss2_url'); ?>"><?php _e('RSS Feed', 'arras') ?></a></li>
<?php else : ?>
<li><a id="rss" title="<?php printf( __( '%s RSS Feed', 'arras' ), esc_html( get_bloginfo('name'), 1 ) ) ?>" href="<?php echo $feed; ?>"><?php _e('RSS Feed', 'arras') ?></a></li>
<?php endif; ?>
<?php $twitter_username = arras_get_option('twitter_username'); ?>
<?php if ($twitter_username != '') : ?>
<li><a id="twitter" title="<?php printf( __( '%s Twitter', 'arras' ), esc_html( get_bloginfo('name'), 1 ) ) ?>" href="https://www.twitter.com/<?php echo $twitter_username ?>/"><?php _e('Twitter', 'arras') ?></a></li>
<?php endif ?>
<?php $facebook_profile = arras_get_option('facebook_profile'); ?>
<?php if ($facebook_profile != '') : ?>
<li><a id="facebook" title="<?php printf( __( '%s Facebook', 'arras' ), esc_html( get_bloginfo('name'), 1 ) ) ?>" href="<?php echo $facebook_profile ?>"><?php _e('Facebook', 'arras') ?></a></li>
<?php endif ?>
</ul>
</div><!-- #nav-content -->
</div>