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. Hi… This is an amazing plugin, but can I put it on my sidebar?

    It just works on pages (I did’nt tested it on posts), but I wanted a menu on my sidebar like the plugin.

  2. [quote comment=”228626″]Hi… This is an amazing plugin, but can I put it on my sidebar?

    It just works on pages (I did’nt tested it on posts), but I wanted a menu on my sidebar like the plugin.[/quote]

    Yes, the shortcodes work inside of the text widget.

  3. Pingback: Twitter Theme?Always Twitting… - ???? - ????????????

  4. This is a very nice archive page solution — thanks a lot for maintaining this plugin. Two things I’d love to see added:

    1. A CSS class for comment counts/post counts. Right now, there is no way to style the counts to be different from the dates.

    2. The ability to do an archive listing for only certain categories.

    Thanks again!

  5. Pingback: Plugins Used Across the Board on WP Installs :Erica Was Here

  6. [quote comment=”228666″]1. A CSS class for comment counts/post counts. Right now, there is no way to style the counts to be different from the dates.[/quote]

    Yes there is:

    [css].car-yearmonth span { color: red; }[/css]

    [quote comment=”228666″]2. The ability to do an archive listing for only certain categories.[/quote]

    This plugin needs an overhaul so that you can configure that kinda stuff, but for now just edit the plugin’s get_posts() call and add a category parameter.

  7. Ah, you’re right. I wasn’t thinking about the span tag like that.

    I understand completely about needing to overhaul a plugin — no worries. Just wanted to let you know that there is interest in such a feature should you have time to get to it.

    Thanks again!

  8. Hi Viper,

    thank you very much for this plugin.
    I just made the Albanian Translation of the plugin and want to send you the .po .mo files. Contact me throught my email in order to send you the files.

    Thanks a lot

    Best Wishes

    Romeo

  9. Hello.

    Just installed your plugin via my wordpress plugin install page. Now it’s installed, but exactly how do I access the page, does it have a URL? If so, what would the URL be?

    Thanks

    Martin

  10. Thank You, It also helped when I read the “clean-archives-reloaded/readme.txt” on the edit plugins page…It was all there in black and white…

  11. Pingback: WordPress Theme:Keso Blog - ???? - ????????????

  12. Pingback: Theme 2.8?Twitter?Apple?Keso - ???? - ????????????

  13. Pingback: how to start Blogging | indimovi

  14. Pingback: ???? » Blog Archive » ?????

  15. Pingback: anne summers – Australian Web Designer Ricky Onsman

  16. Pingback: ???? » Blog Archive » wordpress??????????????!

  17. Hi,
    Just installed your plugin after exploring lots of other archive ones and am very pleased indeed with it. It is clear and neat and efficient. Only thing I would like that it does not do is to view the excerpt of each post when mousing over the title. I tried inserting — title=”‘ . get_the_excerpt( $post->ID ) . ‘” in the html on line 293 but all it shows is the excerpt for the page holding the archives. Is there any way of doing this?

  18. PS If I can get a mouseover to display the excerpt of the post I would like to use the plugin for all my category displays but do not know enough coding to – ‘just edit the plugin’s get_posts() call and add a category parameter.’. Be most grateful if you could describe for me exactly how to do that.

    John

  19. Hi !!

    I have installed it but can not see any result. Please let me know how to configure it on my site. Please let me know after install how can i use it on my movie site. [spammy link removed]

    regards

  20. Hi,

    my (strictly private) blog telling stories from our daughter has a long list of categories, referencing the age of our daughter in months (first, second etc.). Now she’s nearly 2 years old and will have a sister soon.

    I would like to put all the old pages into an archive like yours but save their respective categories for further reference. How do I get rid of the archived categories in the main category list shown on each screen?

    Thanks for your help.
    Ralf

  21. Edit: I have excluded several category IDs in my sidebar widget php categories.php code. However, now your plugin also shows only the NOT excluded categories.

    After examining this result, I have modified the widget call to a file called categories-list.php (with the exclusions) and a separate categories.php original (with no exclusions). However, the List produced by your plugin is still too short. How do I get separate results: short categories list in my sidebar but full list on my archive page produced by your plugin?

  22. Edit II: Bingo! I have disabled Exclusion Plugins (Simply Exclude/Advanced Category Excluder) and simply excluded the categories as explained in my first edit above. The sidebar widget follows the instructions in categories-list.php and the Clean Archives Reloaded is not controlled by the other plugins mentioned above. Great!

  23. This is driving me nuts. This plugin works great, but I am trying to disable the comment count. I understand that there is not an option to do this, but I am having no luck commenting out the lines I need to in order to get rid of the comment count. I have tried several times, but I only create fatal errors that prevent reactivation fo the plugin. I post the code here that seems to control the comment count. Could you tell me exactly what to comment out? Thanks.

    [php] // Unless comments are closed and there are no comments, show the comment count
    if ( ‘0’ != $atts[‘commentcount’] && ( 0 != $post->comment_count || ‘closed’ != $post->comment_status ) && empty($post->post_password) )
    $html .= ‘ (‘ . $post->comment_count . ‘)’;

    $html .= "\n";
    }

    $html .= " \n \n";
    }

    $html .= "\n\n";

    return $html;
    } [/php]

  24. Well a few more tries and I have the comment count off. Below is the line I had to comment out to do it. Did I do it in the best way?

    //$html .= ‘ (‘ . $post->comment_count . ‘)’;

  25. I added the code as required and it kills my web page. Example: http://promechanics.com/test-page/

    Rest of page works fine. Yes, the plugin has been activated. Could this be a javascript run error or is there something else going on?

    The page breaks right where I added the code. whatever it is doing, it is preventing the site from loading the rest of the page code.

    • I’m saying it looks like a PHP error is occurring with errors set to hidden and that you don’t need to edit a single part of the plugin in order to do what you’re trying to do. There are shortcode parameters to control that, as Ralf pointed out.

  26. Pingback: Kilka nowych funkcji na markasblog | markasblog

  27. Hi, this is what I have in this page

    [code]
    There are [cartotalposts] News:

    [cleanarchivesreloaded]
    [/code]

    It used to work until lastnight, everything just crashed and displayed as an empty page. I’ve already upgraded to latest version but still same.

    Please help.

  28. It gives me…
    Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 289217 bytes) in /home/xxx/public_html/wp-includes/formatting.php on line 183
    [cartotalposts] works
    [cleanarchivesreloaded] works not, because it gives me the fatal error.

  29. Pingback: WP???????RunPHP | ????-????

  30. Great job with this plugin, It is almost exactly what I am looking for.
    I have a question about the source code. I’m not that great with advanced php symantics but Iv’e found the spot I want to edit:

    [screwy code removed]

    I want to place an echo to call a custom field I have of a post thumbnail in every post. something like:

    [screwy code removed]

    When I insert my code as it is into the [screwy code removed] it breaks the entire thing. Maybe you could help me get my semantics right? Thanks a ton, and great job on the plug in, its rockin!

    • You can wrap your code in [php] or [code] here if you want.

      And I do no provide support for modifying my plugins. Look up get_post_meta() on the WordPress.org Codex though. It’ll do what you want when inserted into the proper place in my plugin.

  31. Its totally understandable not to provide support for modifying your plugin. The generosity you have shown by releasing this plugin is more than I could ask for.
    Ill place that code there again, just in case you or anyone else can see a quick, no-effort-on-your-part solution:

    [code]$html .= ‘ <li class="postlisting"><a href=""><?php $image = get_post_meta($post->ID, ‘grid_thumb’, true); ?><?php echo $image; ?>’ . get_the_title( $post->ID ) . ‘</a>’;
    [/code]
    Thanks again!

  32. Thanks a lot for this.

    Yeah, the temporary solution now I have to put
    [php] define(‘WP_MEMORY_LIMIT’, ’96M’); [/php]

    Into wp-config.php

    Thanks again.

    Cheers,
    Raffaell

  33. Pingback: Going “Elemental” … in 70 Minutes! | livingwithmusic.com

  34. Pingback: Karrai

  35. Nice plugin; I’ve been using it for a year or more. I changed the get_posts call to exclude all categories except one.

    Now I’m wondering about running multiple instances of the plugin to have multiple one-category archives. Might there be a way to change the shortcode and th function name and call a second copy of the plugin? A hack, yes…. And/or a possible feature for a future version?

      • I managed to get a “Smart Archives Reloaded 2” to show up in Plugins, but the [smartarchivesreloaded2] shortcode doesn’t work, probably due to a conflict with several get post loops on one page, or the cache. Mind if I ask around the WP plugin forums to see if I can get this idea to work?

        • If anyone is having any luck achieving this functionality (multiple instances of the plugin limited to one category each or something similar with the same end result) please post it here. I am in need of doing the exact same thing, yesterday.

          🙂

    • Did you find a solution to running multiple instances of the plugin to have multiple on-category archives? I’m looking to do the same thing!

    • Any chance of you sharing the ‘get_posts call to exclude all categories except one’? It’d be really helpful! Thanks.

Comments are closed.