How to make an Archive page for your blog
A few readers in the past have emailed me to ask on how I made the Archive page on this blog. I thought of writing a post on it after reading this email from a reader
Hi John,
I have one doubt. What plugin do you use to create the Archives page http://www.johntp.com/archives/
I have searched many places but didn’t find an answer.
I don’t use any plugin to create the Archive page, I just use this code:
<h3>Browse by Month</h3>
<ul>
<?php wp_get_archives('show_post_count=1'); ?>
</ul>
<h3>Browse by Category</h3>
<ul>
<?php wp_list_cats('hierarchical=0&optioncount=1'); ?>
</ul>
You may also use a WordPress plugin called Clean Archives. I have not tried this plugin but have seen some bloggers using it to display all the posts of their blog on the archive page.
Search JohnTP.com or view a random post
Related Articles
Find out what I am doing currently by following me on Twitter.
Posted on August 12th, 2008 | Category: WordPress | 4 Comments »

Madhur Kapoor
August 13, 2008 at 12:36 am
I currently use the plugin which works great
JohnTP
August 13, 2008 at 7:36 am
Clean Archives? I am thinking of giving it a try but don’t want to use too many plugins too
Rajesh
August 13, 2008 at 9:52 am
john, If the plugin has options to do only what you want, then it is worth trying it as I don’t see any big difference in generating your archives via code of your own and a plugin.
but your archives look neat and good to me
Raj
August 15, 2008 at 9:50 pm
Nice trick John
Thanks