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!
5 Responses
XeroCool
March 5th, 2005 at 11:02 am
1Wow. Great idea! Ill have to do that!
Justin Blanton
March 5th, 2005 at 4:46 pm
2I just put up a note about the linebreaks on the project page — I think they screw up the formatting if you use the WordPress Pages feature (I don’t). I offer a ‘fix’ on the project page.
Nick
March 6th, 2005 at 4:30 pm
3You might want to check out MDV Archive.
devprogram
March 7th, 2005 at 5:55 pm
4You might want to check out http://twiki.org - that’s easier to maintain cause bramhesh is more familier with perl than with php - of course java would be ideal.
Must have wordpress plugins | SEO Junk
February 26th, 2008 at 12:58 pm
5[...] Smart Archives WP Super Cache hot-linked-image-cacher wp-stats AddThis Social Widget Wordpress Instant [...]