Useful Alternatives to the Dreaded Monthly Archive Links
In a lot of WordPress sites’ sidebars, you’ll probably see the monthly archive links make an appearance. These are a list of links that categorize your post by month. If you want to get more specific, you can even group the posts by week or even day. Unless you’re using widgets, these lists are output using the wp_get_archives function. Here are some examples:
<?php wp_get_archives(); ?>– Lists the monthly archives (no parameters needed, it’s monthly by default)<?php wp_get_archives('type=weekly'); ?>– Lists the weekly archives<?php wp_get_archives('type=daily'); ?>– Lists the daily archives- Bonus:
<?php wp_get_archives('type=yearly'); ?>– Lists the yearly archives
So what’s the problem? Well, depending on the site, monthly archive links aren’t very useful to your visitors. I mean, how many times have you visited a site and said “Hmm…I want to check out some posts written in January 2008″?
Probably never, and these links waste valuable space in your sidebar (or footer, whatever) that could be occupied by more useful links.
In this post, we’ll go over how to insert the following into your WordPress theme, including a widget alternative (if available):
- Popular post links (three separate methods)
- Featured articles/links using the Blogroll
- Recent post links
There are a few methods to get a link list of popular/useful posts. Here they are:
15
Jun
2011











