For some reason, my sidebar code renders like this:
<br />
<h2>Categories</h2>
<ul></ul>
<ul>
<li><a href="#" title="Cat 1">Cat 1 (28)</a></li>
<li><a href="#" title="Cat 2">Cat 2 (17)</a></li>
</ul>
The trimming ul tag just under the title is causing invalid code and extra spacing that I need to get rid of. I've searched the forums for the past hour or so and couldn't find a thing related on this.
this is my sidebar code:
<br />
<div id="sidebar"><br />
<h2>Velkommen</h2><br />
<?php include (TEMPLATEPATH . "/searchform.php"); ?><br />
<?php wswwpx_fold_page_list('sort_column=menu_order&exclude=42'); ?><br />
<?php<br />
$link_cats = $wpdb->get_results("SELECT cat_id, cat_name FROM $wpdb->linkcategories");<br />
foreach ($link_cats as $link_cat) {<br />
?><br />
<h2>Læs Artikler</h2>
<ul><?php wswwpx_fold_category_list ('optioncount=1&hierarchical=1&hide_empty=0'); ?></ul>
<?php } ?><br />
<h2>Arkiv</h2>
<ul><?php get_archives('monthly','10','custom','
<li>','</li>
'); ?></ul>
</div><br />
any suggestions would help, thank you.