Now, I am using a validator and it is telling me there are 2 problems:
Validator finds error: “there is no attribute “role”
<div id=”category_header” role=”category”>”
<?php $cat = $options[‘category_header’]; ?>
<?php if ($cat == “yes”){?>
<div id=”category_header” role=”category”>
<?php
$catsNav = ”;
if (function_exists(‘wp_nav_menu’)) {
$catsNav = wp_nav_menu( array( ‘theme_location’ => ‘header-cats’, ‘menu_class’ => ‘nav’, ‘menu_id’ => ‘cat_nav’, ‘echo’ => false, ‘fallback_cb’ => ” ) );};
if ($catsNav == ”) { ?>
<ul id=”cat_nav”>
<?php if (is_page()) { $highlight = “page_item”; } else {$highlight = “page_item current_page_item”; } ?>
<?php wp_list_categories(‘title_li=’); ?>
<?php }
else echo($catsNav);
?>
</div>
<?php } ?>
Validator finds error: “end tag for “ul” which is not finished…
<li id=”recent-comments-2″ class=”widget widget_recent_comments”><h3>Recent Comments</h3><ul id=”recentcomments”>”…
which looks fine to me but which I can’t find maybe because Validator is validating a cached version.