So sollte es klappen:
PHP
<div id="sidebar">
<ul>
<li>
<?php include (TEMPLATEPATH . '/searchform.php'); ?>
</li>
<!-- Author information is disabled per default. Uncomment and fill in your details if you want to use it.
<li><h2>Autor</h2>
<p>A little something about you, the author. Nothing lengthy, just an overview.</p>
</li>
-->
<li>
<?php /* If this is a 404 page */ if (is_404()) { ?>
<?php /* If this is a category archive */ } elseif (is_category()) { ?>
<p>Du durchsuchst derzeit das Archiv der <br /><?php single_cat_title(''); ?> Kategorie.</p>
<?php /* If this is a daily archive */ } elseif (is_day()) { ?>
<p>Du durchsuchst derzeit das <a href="<?php echo get_settings('siteurl'); ?>"><?php echo bloginfo('name'); ?></a> Archiv
nach <?php the_time('l,'); ?> den <?php the_time('j. F Y'); ?>.</p>
<?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
<p>Du durchsuchst derzeit das <a href="<?php echo get_settings('siteurl'); ?>"><?php echo bloginfo('name'); ?></a> Archiv
nach dem Monat <br /> <?php the_time('F Y'); ?>.</p>
<?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
<p>Du durchsuchst derzeit das <a href="<?php echo get_settings('siteurl'); ?>"><?php echo bloginfo('name'); ?></a> Archiv
nach dem Jahr <br /><?php the_time('Y'); ?>.</p>
<?php /* more links to find */ } elseif (is_search()) { ?>
<p>Du hast das <a href="<?php echo get_settings('siteurl'); ?>"><?php echo bloginfo('name'); ?></a> Archiv nach
<strong>'<?php echo wp_specialchars($s); ?>'</strong> Durchsucht. Wenn du in den Ergebnissen nichts gefunden hast, helfen dir eventuell die folgenden Links.</p>
<?php /* If this is not a specified archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
<p>Du durchsuchst derzeit das <br /><a href="<?php echo get_settings('siteurl'); ?>"><?php echo bloginfo('name'); ?></a> Archiv.</p>
<?php } ?>
</li>
<li><h2 class="schrift">Hauptmenü</h2>
<ul>
<?php wp_list_pages('sort_column=menu_order&exclude=5,9,36,52,53,54,55,72'); ?>
</ul>
</li>
<li><h2>Kategorien</h2>
<ul>
<?php wp_list_cats('sort_column=id&optioncount=1&hierarchical=1&children=1'); ?>
</ul>
</li>
<?php /* If this is the frontpage */ if ( is_home() || is_page() ) { ?>
<?php get_links_list(); ?>
<li><h2>Archiv</h2>
<ul>
<?php wp_get_archives('type=monthly'); ?>
</ul>
</li>
<li>
<ul>
<li>
<script type="text/javascript"><!--
google_ad_client = "pub-8296277701473538";
google_ad_width = 125;
google_ad_height = 125;
google_ad_format = "125x125_as_rimg";
google_cpa_choice = "CAAQmc_nzwEaCPw7w5wuT5e_KIG093M";
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</li>
</ul>
<br />
<ul>
<li><h2>Meta</h2></li>
<?php wp_register(); ?>
<li><?php wp_loginout(); ?></li>
<li><a href="http://validator.w3.org/check/referer" title="This page validates as XHTML 1.0 Transitional">Valid <abbr title="eXtensible HyperText Markup Language">XHTML</abbr></a></li>
<li><a href="/partner/">Partner</a></li>
<li><a href="/links/">Links</a>
<a href="/links-2/">2</a>
<a href="/links-3/">3</a>
<a href="/links-4/">4</a>
</li>
<?php wp_meta(); ?>
</ul>
</li>
<?php } ?>
<?php wp_list_pages('sort_column=menu_order&exclude=3,4,5,6,12,30,31,36,38,52,53,54,55,72&title_li=<h2></h2>' ); ?>
</ul>
</div>
Alles anzeigen