Need a clean looking archive? Then you should try the WordPress Clean Archive plugin. You can see a live example over here. For each year the number of posts in each month are shown in the table. When there are any posts in a specific month, the number of posts is a bold link. This link points to the date archive page of the specific month in the specific year.

WordPress Clean Archive Plugin

Wordpress Clean Archive Plugin

<?php wp_clean_archive('arguments'); ?>

The plugin is fully customizable by passing query-string-style parameters to wp_clean_archive(). Also, you can stylize all table elements using css. The classnames are ‘wpca-th’, ‘wpca-tr’, ‘wpca-td’, ‘wpca-link’, ‘wpca-year’ and ‘wpca-month’. It should be obvious which elements have which classnames. If you can’t figure it out, just take a look in the html source of your page.

The parameters are below.

Parameters

table_id
(string) ID of the archive table. The default ID is ‘wpca-table’.
year_order

(string) Sort order of the archive. The default is descending. Valid values:

  • ASC
  • DESC - default
month_abbr
(string) Should the listed months be abbreviated (TRUE) or not (FALSE). Defaults to TRUE.
echo
(string) Should the archive table be echoed (TRUE) or returned (FALSE). Defaults to TRUE.

Download

Grab your copy:

  • Latest version: 0.1, download (tested with WordPress 2.3).

Installation

  1. Download the WordPress Clean Archive plugin.
  2. Unzip the file and then upload it to your plugin directory (/wp-content/plugins/) and activate it under the “Plugins” tab.
  3. Add <?php wp_clean_archive(); ?> somewhere in your template.