Tengo esto:
Código PHP:
<?php $post = $posts[0]; // Hack. Set $post so that the_date() works. ?>
<?php /* If this is a category archive */ if (is_category()) { ?>
<h3 class="sectiontitle"><div style="padding-top:10px;padding-left:10px;"><span class="IsCategory"></span><?php echo single_cat_title(); ?></div></h3>
<?php /* If this is a tag archive */ } elseif (is_tag()) { ?>
<h3 class="sectiontitle"><div style="padding-top:10px;padding-left:10px;"><span class="Tag"></span><?php single_tag_title(); ?></div></h3>
<?php /* If this is a daily archive */ } elseif (is_day()) { ?>
<h3 class="sectiontitle">Archive for <?php the_time('F jS, Y'); ?></h3>
<?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
<h3 class="sectiontitle"><div style="padding-top:10px;padding-left:10px;"><span class="Archivos"></span><?php the_time('F Y'); ?></div></h3>
<?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
<h3 class="sectiontitle">Archive for <?php the_time('Y'); ?></h3>
<?php /* If this is an author archive */ } elseif (is_author()) { ?>
<h3 class="sectiontitle"><div style="padding-top:10px;padding-left:10px;"><span class="Autor"></span><?php the_author(); ?></div></h3>
<?php /* If this is a paged archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
<h3 class="sectiontitle">Blog Archives</h3>
<?php } ?>