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.

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.

779 thoughts on “Clean Archives Reloaded”

Comment navigation

Warning: Cannot modify header information – headers already sent by (output started at E:\CustomerData\webspaces\webspace_00100859\webapps\SiteApp293\htdocs\wp-content\plugins\custom-field-list-widget\widget_custom_field_list.php:1316) in E:\CustomerData\webspaces\webspace_00100859\webapps\SiteApp293\htdocs\wp-includes\pluggable.php on line 864

First of all, thank you for the plugin, it’s the closest I’ve come to getting an archive on my website. I like the expand/collapse look.

Second of all, I think I mangled something while “installing”, and wonder if you wouldn’t mind taking a look?

Here’s what I did:

It installed as a wordpress plugin just fine, I activated it, and configured the settings. Then I went to the widget section and dragged it over to the sidebar (the only place my theme will allow me to insert widgets) Then it showed up on the sidebar, but everybit of customization – blogrolls, sponsors, follow me on twitter, etc… Disappeared.

So I removed it.

Then I had the (probably not so) bright idea to try installing it in my footer, by writing the code that was mentioned in the readme file for inserting the archive in a post. But the only thing that showed up was the code.

Then I had another (probably less than stellar) idea: I would make a new page, call it Archives, install that code from the readme file, view the page’s source code, and cut and paste THAT into the footer!

I think I got a little too much code, because my entire homepage showed up in the footer.
So I tried cutting and pasting what I was pretty sure was the source code for just the archives.

That’s when my archive turned into a kangaroo.

If you look at my webpage: http://www.twiceblessedlife.com and look at the footer, you’ll see the archive monthly listings, with March expanded, and next to it a link that says “Expand All”

If either March is collapsed, or “Expand All” is clicked, or any other month is clicked, then nothing will expand. It will briefly expand and snap shut quickly, and sorta look like my archive is hopping up and down like a kangaroo.

I’m thinking that I either missed something in the cut and pasting process, or it’s just not totally doable. Personally, I’m thinking I’m the one with the oopsie here.

As you can probably tell, I’m not a programmer, and yes, I do describe stuff to my auto mechanic as “The thingy was making a noise.”

If you would be kind enough to take a look-see and let me know where I messed up, I would be extremely grateful.

the plug in has some problem on my site 🙁
the function Collapse All and expand all don’t work.
I’m using wp 3.1.1, i tryed to disable all the plugins but clean archives continue to doesn’t work. does someone have some idea?
thanks

Your archive reloaded plugin is awesome. Thanks a lot!
But since last wordpress update: 3.2 I have a problem

I see “expand all” as default list, instead of must clicking it every time.
I have try: Settings ? Clean Archives ? Uncheck and check “Use Javascript to make the months collapsible” but it doen’t work again

If you check your Javascript console, you’ll see you’re getting a Javascript error on your site that is unrelated to my plugin. It’s just having the side effect of breaking all other Javascript on the page including my plugin.

I’ve been using your plugin since long and I love it. But I just noticed an issue with it, the plugin is loading a huge jQuery code on every page of the site, thus making the site slow. Technically, it should just load only on the Archives page.

Gotta say I love this plugin and it is super simple to use. Only problem is, the titles shown on my archives page are too long. It doesn’t move to the next line. Is there any way to fix this? You can see it here http://www.PeteZafra.com/archives

Comment navigation

About

Hi and welcome to my blog! My name's Alex Mills, although on the Internet I'm more commonly known as Viper007Bond (or just Viper). I'm a Portland, Oregon web developer who works for an awesome company called Automattic (you've perhaps heard of our WordPress.com blogging website). I contribute to the open-source blogging software WordPress and have written quite a few WordPress plugins. I'm also a big car nut who is really into Top Gear and run the show's biggest fan forums. You can read more about me on my about page.

Email Subscription

Enter your email address to subscribe to this blog and receive notifications of new posts by email.