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:

Support / Feature Request Forum:

http://wordpress.org/tags/clean-archives-reloaded

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.

780 thoughts on “Clean Archives Reloaded”

  1. [quote comment=”167435″]Consider the option of not including the jquery library and js functions if the hide/show functionality is not desired. It will decrease page load times (and make me happy, so I don’t have to go mod your plugin). 🙂 Tnx[/quote]

    Even if it’s disabled via the options page, it can still be enabled on a case-by-case basis via the shortcode, i.e. [cleanarchivesreloaded usejs="1"]. That was my basis for continuing to load it. There’s also no easy way when in the <head> to determine if the upcoming posts will want to display the archives or not which is why it’s on all pages.

    No need to edit my plugin though to stop it from loading as I use the script API. Stick this bit of code in your theme’s functions.php (just make one if you don’t have one) and you’ll be good to go:

    if ( !is_admin() ) { wp_deregister_script( 'jquery' ); }

    This of course can cause problems if anything else is expecting jQuery to be there, but if not you should be good. 🙂

  2. Pingback: The Ultimate Guide to Easy SEO Techniques | Smarter Wealth

  3. Hi there,

    Great plugin 🙂

    Just one question: Is there an easy way to pull in just posts from one (my primary) category?

    Many thanks
    Karl

  4. Great thanks for that.

    Just one other quick question: I would like to add the code [cleanarchivesreloaded]
    to a template, is there another way to add the code for this to work?

    Thanks
    Karl

  5. Pingback: Don’s Blog» Blog Archive » Apple Theme For WordPress

  6. Great plugin. Looks really good in terms of what it can do with the archives. I am getting it for my blog. Thanks for sharing. Much appreciated.

  7. [quote comment=”178749″]Great thanks for that.

    Just one other quick question: I would like to add the code [cleanarchivesreloaded]
    to a template, is there another way to add the code for this to work?

    Thanks
    Karl[/quote]
    <!–/ * Call clear archives * /
    –>

  8. [quote comment=”178749″]Just one other quick question: I would like to add the code [cleanarchivesreloaded]
    to a template, is there another way to add the code for this to work?[/quote]

    Two choices:

    global $CleanArchivesReloaded; $CleanArchivesReloaded->PostList();

    or

    echo apply_filters( 'the_content', '[cleanarchivesreloaded]' );

    The first calls the shortcode function directly, the second takes a string and applies the filters that get applied to the contents of a post.

  9. [quote comment=”180610″]That only comments out. Not sure what you mean.[/quote]

    WordPress stripped their code out of their comment as they probably didn’t properly escape the HTML.

  10. Pingback: Recommended Wordpress Plugins

  11. Hi there,

    I wondered if there is a way to evoke a pseudo hover state when hovering over the months. At present we just get the ‘cursor: s-resize’.

    Thanks for a great plugin.

  12. [quote comment=”184089″]I wondered if there is a way to evoke a pseudo hover state when hovering over the months.[/quote]

    Er, huh? Are you talking about showing the hand cursor? Just modify the CSS.

    [quote comment=”184149″]Is ther an easy way to remove post and comment counts?[/quote]

    I need to add config for that (dunno why I didn’t), but hide it via CSS meanwhile:

    .car-yearmonth spam, .car-monthlisting li span { display: none; }

    [quote comment=”184183″]Any ideas why?[/quote]

    Because it uses what text is there to determine whether the list is currently expanded or collapsed. If you modify the text, it can’t figure it out.

    You’ll need to modify the JS above and sorry, you’re on your own for that.

  13. [quote post=”172″]I wondered if there is a way to evoke a pseudo hover state when hovering over the months.[/quote]

    Hi there,

    What I meant to explain… Is there any way to create a hover effect over ‘.car-yearmonth’ as there is no ‘a href’ to create this normally (ie .car-yearmonth a:hover).

    Thank you

  14. [quote comment=”184868″]What I meant to explain… Is there any way to create a hover effect over ‘.car-yearmonth’ as there is no ‘a href’ to create this normally (ie .car-yearmonth a:hover).[/quote]

    Umm, .car-yearmonth:hover ?

  15. Ah, just realised that on .car-yearmonth there is no ‘a href’ so I guess I can’t replicate hover I guess.

    Thanks

  16. [quote comment=”185885″]Ah, just realised that on .car-yearmonth there is no ‘a href’ so I guess I can’t replicate hover I guess.[/quote]

    What are you talking about? Did you not read my above comment? I explained how to do a hover effect. It doesn’t have to be a link.

  17. Pingback: Anything about blog | WordPress Plugin | Recommended WordPress Plugins.html

  18. Pingback: iBlue Theme at Themes.Utombox.com

  19. [quote comment=”199928″]Is it possible to only load the required script needed to run clean archives reloaded on the actual archives page, instead of on every page/post of the site?[/quote]

    At the time I wrote this plugin, I couldn’t figure out a way to check to see if the post that was going to be displayed contained the list or not (i.e. to look forward). I now know of a way though (I think) so this feature is planned for a future release. 😉

  20. Okay, just released a new version. It does the dynamic JS loading as it’s been requested multiple times. It’s enabled by default, but you can disable the dynamic loading via the settings page. You will need to do this if you use CAR in your sidebar.

  21. Excellent. It works great.

    The only problem that I saw is when you update the settings for Clean Archives Reloaded it gives a “Cannot load clean-archives-reloaded.” error message. It’s running perfectly, even seems to save the changes so I just ignore it 🙂

    Thanks for the great plugin.

  22. [quote comment=”200713″]The only problem that I saw is when you update the settings for Clean Archives Reloaded it gives a “Cannot load clean-archives-reloaded.” error message. It’s running perfectly, even seems to save the changes so I just ignore it :-)[/quote]

    I am unable to reproduce that issue.

  23. Hi, 3.1.1 upgrade worked perfectly, thanks!

    One minor thing I’ve noticed with this plugin, is that when you first load the archive page, the JavaScript link is “Expand All”, but everything is already expanded. This means that you must click on it once (no effect) to get it to change to “Collapse All” and then click it again to collapse. Do others have this issue or is it my installation?

    Thanks

  24. [quote comment=”200962″]One minor thing I’ve noticed with this plugin, is that when you first load the archive page, the JavaScript link is “Expand All”, but everything is already expanded. This means that you must click on it once (no effect) to get it to change to “Collapse All” and then click it again to collapse. Do others have this issue or is it my installation?[/quote]

    The first month is expanded by default. Since you only have one month… 😉

    Once we get to next month, August will be collapsed.

    Here’s what I mean: http://www.finalgear.com/post-archives/

  25. Is it possible to truncate the title of the article when it is displayed on the sidebar?

    My problem is I have a few articles with very long titles and it absolutely destroys my theme by not truncating.

    Also, it may be my theme, but I am ending up with breaks between article listings when displayed on a page. Does this plugin do this by default? If not I’m curious where you would suggest I look in my theme template to solve this issue. I’m using the revolution pro theme.

    thanks

  26. [quote comment=”207229″]Is it possible to truncate the title of the article when it is displayed on the sidebar?[/quote]

    No, you’d need to edit the plugin. Perhaps in a future version I’ll add the ability natively.

    [quote comment=”207229″]Also, it may be my theme, but I am ending up with breaks between article listings when displayed on a page. Does this plugin do this by default? If not I’m curious where you would suggest I look in my theme template to solve this issue. I’m using the revolution pro theme.[/quote]

    It’s just a standard nested unordered list. No special styling comes from the plugin.

  27. Pingback: 10?Wordpress???? | ????

  28. [quote comment=”213218″]Hi,
    I’m having more or less the same problem as Jamie above,all posts are expanded. I don’t know if it was due to upgrading to wp 2.6.1 from 2.6 or the latest version of the plugin: 3.1.1
    I did the upgrades on the same day.

    http://mimos.sacinom.tk/?page_id=80%5B/quote%5D

    I have .tk domains set up to be blocked on my network, so I can’t take a look, but the collapsing is done via Javascript. The most likely cause is that the Javascript isn’t being loaded because your theme lacks the required “wp_head” hook.

    Add this to your theme’s header.php, inside of <head>:

    <?php wp_head(); ?>

  29. Thanks Viper for your reply!

    The first thing I checked before commenting here was the “wp_head” hook (I had to do a quick edit here 😉
    It’s there. I have been using your plugin for quite som time now, I really don’t know what happened. I may try to go back to your earlier version later on today.
    If that solves my problem I let you know…

  30. The dynamic JS loader which makes my plugin only load the Javascript when the archive is actually being displayed appears to not be working with your theme.

    Visit Settings -> Clean Archives and uncheck the second box.

  31. Hey I have installed your plugin on my website, but it seems to have broken my settings since this morning I cannot save anything and various things are messed up. I have tried de-activating the plugin but inspite of saying plug-in de-activated the plugin remains in place. Any help would be greatly appreciated I am running 2.6.1

  32. [quote comment=”215919″]Hey I have installed your plugin on my website, but it seems to have broken my settings since this morning I cannot save anything and various things are messed up.[/quote]

    I’m pretty confident that it’s a coincidence or something and not directly related to my plugin. My plugin has WordPress handle all of it’s settings, so there’s nothing really to go wrong from my end.

    I’m not sure what’s wrong. Sorry. Perhaps you can find help at http://wordpress.org/support/

    [quote comment=”215975″]Nicely done. I’d like to see it have an option to organize by category as well![/quote]

    Can you explain what you mean? I don’t understand.

  33. I am currently using a theme that has a Featured Post on the home page. This featured section creates an archive based on the category for this featured post. I noticed that when using this plugin, it is not based on categories but by month – which is great. However, the clean archives cannot pull in my featured category posts in the list of archives. All of my posts for this particular category do not show up in the archives. Is there something that I can do to make it show all of the posts and not exclude this category?

    I am not even sure as to why it is excluding this category of posts in the first place, but it would be nice to have it include all of my posts.

    You can view this page (Archives) at http://breakfastafterten.com/hippocampus
    You can also see that my Featured section on my home page has a link to the featured archives, which include the posts that the plugin is not bringing in.

    You will notice that the clean archives plugin is not showing all of my posts. I currently have the archives page using a template that will include archives by category and archives by month, but I absolutely love the way that this plugin shows each post within the month. I dont want to have to include the “archives by category” and “archives by month” section. I just want the plugin to pull in all of my posts.

  34. [quote comment=”221396″]I am currently using a theme that has a Featured Post on the home page.[/quote]

    Can you link me to the plugin or theme responsible for the feature?

    My plugin literally just gets “all posts” via the WordPress API, so if your featured posts aren’t showing up, then they must have like a custom post type or something.

  35. [quote comment=”226270″]Perhaps you introduced a bug in the recent update?[/quote]

    Hmm, I don’t think so. Do you have a ton of posts and are they all big and long?

    My plugin fetched all posts, loads them into a variable, and then loops through them and outputs them. This can be memory intensive.

    I may have to resort to just manually querying or something to ensure the memory usage stays low.

  36. With this plugin, is there way to group posts under one year in a collapsible menu, and then have the monthly posts underneath that? In other words, a two-level menu:

    2008
    – September
    — Post X
    — Post Y
    – August
    — Post Z
    …

    2007
    – December
    …

    Thanks!

  37. [quote comment=”226310″]With this plugin, is there way to group posts under one year in a collapsible menu, and then have the monthly posts underneath that?[/quote]

    No, not without modifying the plugin which I don’t provide support for. Sorry.

Comments are closed.