Justin Blanton’s Smart Archives plugin is a simple WordPress plugin that will allow you to display your archives in a much “cleaner” format.

I installed this plugin on Blogging Pro and you can get to it from the Pages section. I wanted my archives page to be a WordPress Page so it would be listed with my other pages and would be easy to manage. There may of been an easier way to do it but this is what I did.

I first installed the PHP Exec Plugin so I could run PHP code in my Pages. Then I installed Smart Archives and created a new Page titled Archives with the Smart Archives code <?php smartArchives() ?> in the body of the page.

Some tweaks needed to be made to the Smart Archive plugin code too. I removed .”\n” from lines 21 and 28. I added
[html]
»
[/html]
to line 52 just after the <li>. I also opened up style.css in the Gila theme and added the following
[css]
.post ul {
list-style-type: none;
list-style-position: outside;
margin: 0 0 1em 0;
padding: 0;
}

.post li {
margin: 1ex;
padding: 0 0 0 0;
}
[/css]
Now I have a nice archives page.

Do you like this article? Submit it to Blogosphere News!