Clean Archives Reloaded

What Exactly Does This Plugin Do?

It creates a pretty list of all of the posts that you’ve made to your blog. To see an example, check out my archives page. Note that the image located there that shows the post times of recent posts is generated by a seperate plugin.

Download:

  • Download from WordPress.org (click me to obtain stats downloads total)

Support / Feature Request Forum:

http://www.viper007bond.com/wordpress-plugins/forums/viewforum.php?id=22

Credits / History:

This plugin is based on a concept (it no longer shares any common code) by Sebastian Schmieg for the archive page of his “Blix” theme. His code was later converted to a plugin by Shawn Grimes.

The drawback of both of those versions though was the sheer number of queries required (around 1 per month + 2 per post — it added up quick). So, I decided to make my own version which cached the output so that it was only regenerated when needed and otherwise just pulled with 1 query from the database. I was also given the idea by Chris O’Rourke to use Javascript to make the months collapsible as many people’s archives pages were getting rather long.

All of that was then replaced by the current version which uses WordPress functions and internal WordPress caching techniques to make only one query per page period.

206 Comments On This Page

  1. wow this plugin is cool! i just installed it. it works great! thanks a lot!

  2. one thing though, the number of comments for my recent post, isn’t updated? it still says 6, when it should say 11. why is that?

  3. Oh, I forgot about making it update when there’s a new comment. Whoops!

    Thanks. I’ll release an update shortly. :)

  4. sweeeeet

  5. Okay, updated. :)

    (Sorry it took so long, I got distracted.)

  6. this is an amazing plug-in. im now using it in my archives page. im wondering, though, if there’s a way we could tweak it to show only the archives of the posts of any particular author. im running a multi-author blog and it might be cool if readers would be able to click on a link to an author’s page, then that page includes that author’s lineup of posts, presented in the same way (collapsible by month).

    is this doable?

    thanks!

  7. It wouldn’t be hard to change the code to make it always display a certain author, but to make it display multiple versions would require major recoding due to the caching featured in this plugin. It’d have to use multiple caches or whatever.

  8. Oh, forgot to mention — what you’re talking about would be much easier with the original version. Just add a parameter for the author and then add moo.fx. Not too hard, assuming you can code. If not, I’d be willing to do it, but not for free of course (hey, gotta make a living and my time is important to me). ;)

  9. I just installed Clean Archives Reloaded and it works like a charm, thanks a whole banch !

    Tal.

  10. [Comment ID #8709 Will Be Quoted Here]

    No problem. However, I notice you’re using it in a different language. I’ll make sure it’s translatable in the next version. :)

  11. I have a problem using your plugin, and also I had using the original version of clean-archives. The plugin shows the archives without problems but the links are broken, i do not know the reason. Someone has an idea?

    my archive page: http://blog.halain.net/archivo/

  12. Weird, for some reason the href="" bit is missing from your page. I’ll look into it and try and figure out why it’s doing that.

    And I’m not surprised that if it was broken in the original version that it’s broken in my version. I didn’t modify any of that part. ;)

  13. Hello, I love the Clean Archives! I installed it on a test site I’m working on and put it in the right sidebar…not sure if it is where I placed it or not (PHP and such isn’t my strongsuit), but the links are not working correctly. The posts load into the page okay so it is functioning, but the sidebar list is funky.

    http://www.designs4smallbiz.com

    If you click on the months and expand/collapse links you’ll see what I mean. The month titles don’t match up with what they expand/collapse and some of the individual post links will just disappear altogether. SOME of the months won’t even collapse all the way. Help please! :)

  14. Weird.

    The only thing I can think of is that perhaps the code errors elsewhere on your page are causing the problem.

  15. Great, great plugin. Thanks!! :) It really is fantastic!!

  16. Can a future release address the problem that exists for future-dated posts? If I have a future-dated post that I want to be published at some point in the future, the archive page already shows it. Maybe the plugin could check the date and only return pages dated eariler than the current time/date.

    Just a thought, since I have a post that isn’t supposed to show up until Sunday (and indeed, on my main WP page, it doesn’t), but it is showing up in the archive list already.

    Thanks for a wonderful plugin!!

  17. Hmm, very weird. I tested for that (I made a post in 2010) and I’m pretty sure it didn’t show up on my local test install.

    It must be a bug or something. I’ll look into it in a couple days once I’m back up and running (I recently formatted and I’m still installing things).

  18. The plugin is awesome and extremely practical! Works perfectly!

    Thanks!

  19. Would it be possible to somehow add in some kind of call function so that it only displays posts within a certain category?

  20. I changed the permalink style on my blog.

    Previous format:
    http://www.gallireport.com/2006/06/29/file-slug/

    New format:
    http://www.gallireport.com/file-slug/

    After changing, I “updated the archive structure” in the admin interface.

    Everything works well except for clean archives reloaded.

    If I use the standard archive, it correctly archives my posts using the new structure.

    But clean archives reloaded is still using the old structure — so when I click on a story in the archive list, the page doesn’t get found because it still contains the date elements in the path.

    I went into the WP database and removed references to the date elements in individual post fields; no affect on clean archives reloaded.

    How can I refresh clean archives reloaded so that it displays the new, correct file paths in the archive list that it generates?

    Best wishes

    Richard Galli

    The Galli Report: topical humor
    – better than news any day –
    http://www.gallireport.com

  21. Found a fix, and possibly the problem.

    From reading trouble posts at Wordpress.org, it seems that there may be a glitch in the way that WP caches its admin pages. Or maybe not.

    In any event, I found that if I deleted the “trigger” code from the page on which my archive was to appear [

  22. Viper007Bond on July 5th, 2006 at 2:56 PM wrote:

    How can I refresh clean archives reloaded so that it displays the new, correct file paths in the archive list that it generates?

    I’ve been working on a new version of the plugin. I’ll add in the ability to force a refresh of the cache which will should fix your issue (since the whole content of the archives display, including the URLs, is cached). :)

  23. [Comment ID #9032 Will Be Quoted Here]

    I’ll consider it. It’s a lot, lot harder than just adding a line or two of code, not to mention that this plugin is designed for only one cache rather than a cache per category, author, etc.

  24. Thanks for the excellent clean archives plug in. I was wondering if it is possible to apply a similar method for the categories section.
    I have made a new archives page on my blog which lists both the archives and categories. I changed the default archives view with the plugin and it works great. However if i could get the categories section to work in a similar manner it would be great.

    Any ideas??

    Thanks

  25. Mmm, an interesting idea. I’ll include it in the next release of the plugin. :)

  26. Another great plugin man.

    Can google crawl this easily even though the previous months are collapsed?

  27. View the page’s source - it’s all there. It’s just hidden from displaying in the browser via Javascript. No AJAX or anything like that. ;)

  28. Great plugin, really enjoy how it looks and functions. I’m crossing my fingers for a category feature in a future release. Thanks!

  29. I installed the plugin and it works great. Thanks!

    I have a question, though. I have a huge blank space between the text that gets echoed (Here’s my # posts…) and the beginning of the archives list. Is there a way to get rid of that space? It seems to be there to allow for the post time graph, but I don’t want to use that.

  30. No, the plugin doesn’t do anything like that. Judging by your page’s source (I managed to find the URL to your archives page by guessing), you’re using a PHP execution plugin, correct?

    Well because of that, WordPress is adding a bunch of line breaks (<br />) and such where they shouldn’t be, i.e. have each Javascript file call. Just check out the page’s HTML to see for yourself.

    I hadn’t actually tested this plugin with that type of plugin, so it didn’t occur to me that WordPress would auto-<p> and <br /> the output since it’s becomes part of the post’s contents when you do that.

    I guess to combat that, I’ll need to output all of the plugin on the same line or something.

    Meanwhile though, just use a Page Template as covered in this plugin’s readme. It’s pretty easy to do (just add this plugin’s function after the_content(); and you’re good to go). :)

  31. Have a look at my archive page: http://nordoelum.com/vault/

    How to shrink that awefull gap?

    Birger :)

  32. Birger: I just followed Viper’s instructions (in the comment above yours) to create a Page Template instead of using the runPHP plugin, and they worked pefectly. I know nothing about PHP, which proves that those instructions will work for just about anyone. :)

  33. Great plugin. Is there a way to not show the nimber of comments for each post? Ideally, I’d like to show the number of posts for the month, but not number of comments. Cheers.

  34. Birger Nordoelum on August 14th, 2006 at 5:03 AM wrote:

    Have a look at my archive page: http://nordoelum.com/vault/

    How to shrink that awefull gap?

    Birger :)

    Lindsay is correct. It’s a result of WordPress adding line breaks after my <script> calls. I’ll attempt to fix it in the next release, but your best bet is just to use a custom Page template. As Lindsay said, it’s very easy to do. ;)

  35. Tim on August 14th, 2006 at 2:57 PM wrote:

    Great plugin. Is there a way to not show the nimber of comments for each post? Ideally, I’d like to show the number of posts for the month, but not number of comments. Cheers.

    Delete or comment out this like in the plugin:

    [code]if ($postresult->comment_status == “open” OR $comments_count > 0) $output .= ‘ (’ . $comments_count . ‘)’;[/code]

    I’ll try and remember to give you the option in the next version. :)

  36. Okay, thank you for the reply :D

    One suggestion, could you compile an own version of the blogtimes? I have tryed the Blogtimes with Image, but that one is made for 1.5 and crashes with 2.0.

    Birger :)

    Ed1t: The page template solution worked :D Thanks..

  37. Two months ago I tried to make this plugin work without results. Now, after redesign the theme of the web I noticed that still did not work, so i started to think that could be a problem with the PHP parser, and i was correct. After recode a template instead of using a parser with the function on it, all is working perfect. I hope this will be usefull for someone else, the PHP parser was “RunPHP”.

    You can see the results and the new style on: http://www.nekonoyume.com

    Great plugin (at last it works for me) :)

  38. hi there, the plugin is great! one thing though… is there are way to show the list with the current month not expanded. Right now, it defaults to the current month and all my posts being shown.

  39. The Foo on August 16th, 2006 at 9:02 PM wrote:

    hi there, the plugin is great! one thing though… is there are way to show the list with the current month not expanded. Right now, it defaults to the current month and all my posts being shown.

    Open up clean_archives_reloaded.js and comment out or delete this line:

    [js]if (!cleanArchivesCheckHash()) archiveAccordion.showThisHideOpen(monthPostLists[0]);[/js]

  40. perfect! thanks for the quick response. As a suggestion, maybe in the next release, you can make a +/- sign (next to each month so that the user can expand or unexpand the list. My archive page is at http://theflogs.mjmnet.com/archives. Thanks once again for making this plugin possible.

  41. The Foo on August 16th, 2006 at 11:11 PM wrote:

    As a suggestion, maybe in the next release, you can make a +/- sign (next to each month so that the user can expand or unexpand the list.

    I’m sorry, but that won’t be happening. I’m currently using moo.fx’s accordion function and that only allows for one item to be expanded at a time. I could switch to just an independent expand/collapse system, but I really prefer the accordion style and since I mostly made this plugin for my own uses and released it only for fun, I get the final say in what it does. ;)

  42. any SEO links for the archives ?

  43. Thai Boxing on August 19th, 2006 at 5:24 PM wrote:

    any SEO links for the archives ?

    The plugin uses whatever format you have chosen for post links, so yes, if you have permalinks on, then this plugin will use them.

  44. Thanx for a cool plugin, i’m using it at my site.

  45. I have the plugin running and it works great on FF and IE, however I’ve been told (since I don’t have a mac) that in Safari whenever the links are moused over they completely disappear. I don’t know how to really debug the problem because I don’t have Safari and I’m not that experienced at JavaScript, but I thought I’d ask you for some help.

    You can check out the page here: http://www.firstshowing.net/archive/ and see if there are any problems with the JS or anything. Thanks!

  46. I don’t have Safari either and I didn’t write the Javascript. It’s just a very popular free package that’s available out the web and I’d assume it’d work with all browsers. :/

  47. I’m using Shawn Grimes’s clean archives now,and test this plugin,It’s fine.
    But still one question: these is too many (>100) links in the archives page,according google,this is not a good choice for SEO.
    Is there any way to split into multi pages? for example , 3 month/page?
    http://seo.highdiy.com/index.php/archives/

  48. HighDiy on October 19th, 2006 at 1:33 PM wrote:

    Is there any way to split into multi pages? for example , 3 month/page?

    Possible? Of course. Will I be adding support? Mostly likely not.

  49. Thank you. Great plug in. I love it.
    Glad It works so well. Very elegant too.

  50. hi! the plugin worked like a charm before.. now it looks weird. i’ve upgraded to wordpress 2.0.5 and changed my blogs host. i think there’s something wrong with it but i dont know how i can fix it. please take a look here: http://shadesofblack.acidhost.net thanks a lot! i hope it’ll work beautifully again, i love this plugin so much! :D

  51. hi, i’ve tried to figure out what is wrong but i followed the directions in the readme file and i still have a problem..

    my blog address is area-77.com/blog
    and my archives page is area-77.com/archives

    i copy and pasted the code and the page is empty.. :/

    what am i doing wrong?

  52. snookie on January 1st, 2007 at 11:39 AM wrote:

    i copy and pasted the code and the page is empty.. :/

    Did you make sure to change the Page’s template?

  53. yes but when i publish the page, the all end as pageid-2434 whatever.. all the “pages” on my site are html.. so i never used this creating a page through wordpress method.. i wanted my pages to end as http://www.area-77.com/archives ; /blog etc..

  54. It needs to be an actual WordPress page. This plugin won’t work outside of WordPress, let alone in an HTML document.

    Just enable permalinks like I have done so you don’t see the page ID in the URL.

    http://codex.wordpress.org/Using_Permalinks

  55. Will you provide a WP 2.1 compatible version?

  56. Sorry, found it in the compatible list, sorry.

  57. milo on January 21st, 2007 at 8:39 PM wrote:

    Will you provide a WP 2.1 compatible version?

    This blog is running WP 2.1 and has been for over a month. ;)

  58. Outstanding! The version from Shawn Grimes had been doing what I needed, but was running upwards of 640 queries on every page load. My hosting provider will be much happier with me once I install this plugin. :-)