Archive Page

As part of the move to WordPress, I wanted to setup an archive page. I looked through a few plugins and settled on the simple Clean My Archives plugin, by Justin Tadlock.

My only complaint with it is that each post has the number of comments next to it. Since I’ve disabled comments throughout this site, every post had a nice ‘(0)’ next to it:

Screenshot of Archive Page with '(0)' comment counts

This is easy enough to change, though. I changed line 163 of the plugin (version 0.2.0) from:

/* Add the post list item to the formatted archives. */
$clean .= the_title( '<li' . $duplicate_day . '>' . $day . ' <a href="' . get_permalink() . '" title="' . the_title_attribute( 'echo=0' ) . '" rel="bookmark">', '</a> ' . $comments . '</li>', false );

To:

/* Add the post list item to the formatted archives. */
$clean .= the_title( '<li' . $duplicate_day . '>' . $day . ' <a href="' . get_permalink() . '" title="' . the_title_attribute( 'echo=0' ) . '" rel="bookmark">', '</a> ' . '</li>', false );

Which resulted in this on the archive page:

Screenshot of Archive Page without comment counts