Fancy Archives for Wordpress

This is a relatively simple plugin that uses Javascript to make the Archive links in the sidebar collapsable by year.

It has been tested on Wordpress versions 2.0+ and 2.1+

Demo

You can view a demo in the sidebar of my test Wordpress site here.

Installation

Unpack the tar contents to wp-content/plugins/ so that the files are in a fancy-archives directory. Now enable the plugin. To use the plugin, change the following here appropriate (most likely sidebar.php):

Change From:

<ul>
 wp_get_archives(your_options_here);
</ul>

To something of the following:

<?php
 if( function_exists('list_fancy_archives') ) {
  list_fancy_archives();
 } else {
  echo "<ul>\n";
  wp_get_archives(your_options_here);
  echo "</ul>\n";
 }
?>

This way, if you ever disable the plugin, your blog doesn't die.

Note: wp_get_archives can be substituted for wp_list_archives depending on the design of the theme, so be sure to edit appropriately. Also, substitute your_options_here with what the appropriate options are for your theme.

Options for Fancy Archives are found under Options -> Fancy Archives. So far, there are the following options:

This plugin relies on Javascript, but does degrade gracefully if it is not present/enabled to show all of the archive links as usual.