WordPress provides the handy wp_get_archives() function for displaying post archives in your site, however depending on your site or blog, you may want to have some more advanced functionality. Let’s take a look at the options out there.
Smart Archives Reloaded
Smart Archives Reloaded allows you to display a list of posts grouped by year and month. It also provides several interesting navigation elements. It is probably the archive plugin which has the most configuration options, and is thus quite flexible.
- list = a list of posts grouped by month
- block = a compact block of links to year and date archive pages
- menu = a two-level menu with links to year and date archive pages
- both = block + list (example)
Clean Archives Reloaded
It’s highly efficient and won’t kill your server with tons of MySQL queries.
Simple Nav Archives
This plugin makes the posts in your nav easily-groupable by month and year. It gives you quite a few easy-to-implement options that allow you to customize both which date groups are listed as well as how the markup is structured.
It’s typical output is as follows:
– February (1)
– January (2)
Perhaps the primary benefit of this particular plugin over other plugins that do similar things is its ability to enclose the post count within the anchor tag. This solves countless problems for anyone using the CSS style display: block on anchor tags, which produces the undesirable result of forcing the post count down to the next line.
Archives for Custom Post Types
The following plugins will allow you to implement archives also on WordPress 3 custom post types.