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.

694 comments to Clean Archives Reloaded

  1. Fiona says:

    Hi! Installed the plugin and it works but it doesnt collapse or expand. Any idea why?

    http://voize.my/archives

  2. Michelle says:

    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.

  3. Viper007Bond says:

    Michelle on October 21st, 2009 at 10:11 AM wrote:

    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.

    Yes, the shortcodes work inside of the text widget.

  4. Viper007Bond says:

    Fiona on October 21st, 2009 at 2:14 AM wrote:

    Hi! Installed the plugin and it works but it doesnt collapse or expand. Any idea why?

    http://voize.my/archives

    Works fine for me. :)

  5. [...] Clean Archives Reloaded ?????Ajax????? [...]

  6. Nathan Olsen says:

    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!

  7. Viper007Bond says:

    Nathan Olsen on October 26th, 2009 at 11:51 PM wrote:

    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.

    Yes there is:

    .car-yearmonth span { color: red; }

    Nathan Olsen on October 26th, 2009 at 11:51 PM wrote:

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

    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.

  8. Nathan Olsen says:

    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!

  9. tech says:

    my case, http://tech.chitgoks.com/archives/

    nothing comes out. my pages doesnt get loaded. in my other blogs only the text

  10. Viper007Bond says:

    tech on October 29th, 2009 at 7:42 PM wrote:

    my case, http://tech.chitgoks.com/archives/

    nothing comes out. my pages doesnt get loaded. in my other blogs only the text

    Appears to be working for me. :)

  11. Romeo says:

    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

  12. Martin says:

    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

  13. Viper007Bond says:


    Martin:

    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?

    At the bottom:

    http://wordpress.org/extend/plugins/clean-archives-reloaded/installation/

  14. Martin says:

    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…

  15. [...] Clean Archives Reloaded ?????Ajax????? [...]

  16. [...] Clean Archives Reloaded ?????Ajax????? [...]

  17. [...] Your Visitors – Clean Archives Reloaded generates a list of your posts sorted by months for better [...]

  18. [...] Clean Archives Reloaded / Dean’s FCKEditor For WordPress / Ozh’ Better Feed / WordPress Thread [...]

  19. [...] Social Bookmarking Widget Version 1.5.4 Clean Archives Reloaded Version 3.1.8 Recent Posts Version 2.6.2.0 Post-Plugin Library Version 2.6.2.1 (required for Recent [...]

  20. [...] Clean Archives Reloaded ?????????????????????????????????????????????????????widget????????????????????????????? [...]

  21. Johar says:

    Its look great plugins, i wil try it , thank

  22. SleepyJohn says:

    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?

  23. SleepyJohn says:

    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

  24. Banna says:

    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

  25. mahen says:

    Sorry for my ignorance, but i installed the plugin. now how do I insert this in a page, is there any shortcode or something.

    I am a newbie.

  26. Ralf says:

    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

  27. Ralf says:

    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?

  28. Ralf says:

    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!

  29. Will says:

    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.

     // 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;
    	} 
  30. Will says:

    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 . ‘)’;

  31. chrisc says:

    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.

  32. chrisc says:

    So you are saying that one of my PHP calls is incorrect?

    • Viper007Bond says:

      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.

  33. Rick says:

    Great plugin. Would it be possible to have the months be active links like a conventional archive page?

  34. [...] ?atwo?ci? b?dzie mo?na ?ledzi? wpisy podzielone na miesi?ce i lata (wykorzysta?em wtyczk? Clean Archives Reloaded, do której wprowadzi?em kilka zmian); jednocze?nie z sidebara usun??em widget Archiwum dzi?ki [...]

  35. Joachim says:

    Great job! This plugin is very helful.

    thanks for sharing.
    Joachim

  36. CT Su says:

    Hi, this is what I have in this page

    There are [cartotalposts] News:
    
    [cleanarchivesreloaded]
    

    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.

  37. hi???thanks for the update…i really like this plug-in!!! yaatttaaa!!!!

  38. Na?ul says:

    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.

  39. Na?ul says:

    Nevermind, I fixed it ;)
    Thanks for great plugin.
    Happy holidays.

  40. [...] ???????, ?????????, ?????Clean Archives?????: <?php wp_list_all_active_plugins(); [...]

  41. 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!

  42. oh, that code above didnt come out right after posting. Is it clear what i am trying to accomplish though?

    • Viper007Bond says:

      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.

  43. 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:

    $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>';
    

    Thanks again!

  44. Raffaell says:

    Hi,

    My CleanArchive got blank also, same like the others, is there any solution for this ?

    Thanks

  45. Raffaell says:

    Thanks a lot for this.

    Yeah, the temporary solution now I have to put

     define('WP_MEMORY_LIMIT', '96M'); 

    Into wp-config.php

    Thanks again.

    Cheers,
    Raffaell

  46. [...] integrated "Clean Archives Reloaded", which was already present on my site (10 [...]

  47. Karrai says:

    [...] Clean Archives Reloaded This plugin shows a list of all of the posts you have ever made in your blog. It displays them by Month and Year and also shows how many comments were made on each post. [...]

  48. Songdogtech says:

    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?

    • Viper007Bond says:

      Yes, all that kinda stuff is planned for the future, I just don’t have the time to get it done.

      • Songdogtech says:

        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.
          :)

    • Lori says:

      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!

    • Ian says:

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

  49. Kerstin says:

    Hi Alex ~ I love your plug-in! However, I am having problems with the comment count on posts that I had imported into my blog. At first I thought it was because WordPress was not counting those comments, either. I fixed that. But they are still not showing in the archives. Here is the link, the number of comments are not showing for posts before May 2009: http://www.gipsylife.com/archives/. Can you help? Thank you, Kerstin

  50. Kerstin says:

    Thanks for replying, Alex.
    Phew. I don’t remember. I used the import function in WordPress. I added your plugin AFTER I did the import. And at the time of import WordPress did not count all the comments correctly, I only fixed that recently so that now they are being counted correctly. So what’s my best recourse, import again?

  51. TiTu Hossain says:

    i used this Plugins but showing this error

    Fatal error: Out of memory (allocated 61079552) (tried to allocate 131072 bytes) in /home/loggia/public_html/wp-includes/wp-db.php on line 958

  52. [...] Eklenti Ana Sayfas? Etiketler: Clean Archives Reloaded, Clean Archives Reloaded eklenti indir, Clean Archives Reloaded eklentisi, Clean Archives Reloaded wp eklenti, wp Clean Archives Reloaded eklentisi download Payla? [...]

  53. Erik Even says:

    This is working great. Thank you so much.

  54. ndop says:

    the best archive plugin ever.. I search many archive plugin,and this plugin is the best of all. Bravo!!!

  55. [...] Clean Archives Reloaded von Viper007Bond Ein Plugin für eine saubere und gut strukturierte Archiv Seite. [...]

  56. StreetChic says:

    hi
    i use it found a problem.
    yet the archive is worked well.
    but yesterday i transfer my site to another host
    i found the archives can’t work
    i don’t know what happened, is there any thing the host must support?
    thank u!

    ps.
    the archives url in my site:
    http://www.streetchic.cn/archives

  57. Lon says:

    I’m coming up with a blank archive page as well – i tried the memory limit fix but it still seems to show up blank. i’m with 1and1.com hosting. any help would be great.

  58. [...] WP Page Numbers????? Simple Tags??????? WP Kit CN??????? Clean Archives Reloaded?????Archive??? Google XML Sitemaps??? sitemap.xml??Google???? [...]

  59. [...] Your Visitors – Clean Archives Reloaded generate a list of your posts sorted by months for better navigation. To see an example, have a [...]

  60. [...] Clean Archives Reloaded (Version: 3.1.10) [...]

  61. [...] php code within a page or post; or I simply couldn’t get them to work.   Finally I found Clean Archives Reloaded and it was the only plugin that was dead simple and I could get to work in under 5 minutes. [...]

  62. Allison says:

    Awesome plugin! Thanks for sharing it with the wordpress community. I’ve installed it and it’s exactly what I wanted.

  63. Leon says:

    do you have a plugin like this ,but a list posts by category ?

  64. [...] Checker: Erg handige plugin om niet-werkende links of links naar verdwenen blogs op te sporen. · Clean Archives Reloaded: “A slick, Javascript-enhanced post archive list generator for WordPress.” Met deze plugin kan [...]

  65. Ez Fahmi says:

    Hey Viper,
    i add a new page called archive, then i fill with
    “Here is all [cartotalposts] of my posts:
    [cleanarchivesreloaded]”

    It worked charm, but when i click expand all, suddenly the archives are closed and the javascript is not working perfectly.
    How come?

  66. Hi Alex, I use CAR on 4 of my own blogs and 3 others I host. The one on the blog linked above stopped displaying the page recently and I tracked it down to the memory_lime of 32M I had set on the server (which I had to do to defeat some runaway spambots). Using define(‘WP_MEMORY_LIMIT’, ’64M’); in the wp-config.php file solved the issue.

    I’m actually thankful the memory limit reverts to 32M after the PHP page is displayed. I just wish I could figure out how to increase the limit for only the page I’m using the plugin for.

    • Viper007Bond says:

      It’s a bit ugly, but I think this is the best way:

      if ( '/your-page/' == $_SERVER['REQUEST_URI'] ) define( 'WP_MEMORY_LIMIT', '64M' );

      That will only increase the limit at yourdomain.com/your-page/

  67. You’re awesome. I thought of doing it in the page template and your suggestion tells me it’s a good thing I waited. I completely forgot about doing it conditionally versus for every page. Duh.

  68. caterine101 says:

    A great thanks for this plugin! It is very user-friendly, neat, and functional to my blogging activities. Been looking for something like this for a long time already!

  69. zzodhi says:

    This plug-in is what my friend is looking for but I can’t seem to get it into the sidebar. It appears in the main body. He wants to duplicate this look: http://hifiheroin.blogspot.com/

    He likes how it lists the titles much as your plug in does for easy reference. Also he’s techno illiterate. I see some people are trying to code it to auto insert [cleanarchivesreloaded] which would be best. I’m fairly new to WP and appreciate your help.

  70. Greg says:

    My archive list is all smushed together. Anyone have an idea?

  71. Ez says:

    My previous problem, because i didn’t use your latest release.
    Now, it works like charm.
    Many-many thanks…

  72. [...] the WordPress plugin Clean Archives Reloaded and adding a shortcode to her “Galleries” page solved that problem in less than 3 [...]

  73. alice says:

    Hi!

    I just added your plug-in and the there seems to be a js issue with the expandable box. It opens already expanded. I saw another post about adding “” into the header.php file, but it doesn’t help. Any suggestions?

    Thanks!!

  74. alice says:

    I forgot to add the link

    alicemanningdesign.com/blog

    This is in development for my client, so I want to make the changes here before I fix my client’s.

    Also, the php code that I added into the header.php was

    Thanks, Alicce

    • Viper007Bond says:

      Just looking at your theme’s source I can tell you’re still missing the hook as your XML-RPC URL isn’t being outputted by WordPress.

      Open your header.php, find </head>, and add this directly before it: <?php wp_head(); ?>

  75. ????? | ???? says:

    [...] Clean Archives Reloaded [?? 3.1.10 | ???Viper007Bond | ??????] [...]

  76. John says:

    hey, I think this plugin is great, just 1 question!!!

    I would like to remove the number of posts that appear to the right of each month…I was looking at the php file but i have ZEROO idea what to do.

    I’m sure i only need to delete a small portion or even one line, any help would be greatly appreciated. thanks much and great work.

    • Viper007Bond says:

      Easiest way is to just use CSS. Add this to your theme’s style.css:

      .car-monthlisting span { display: none; }
      • John says:

        Hi, thanks for your reply…

        that CSS only removes the comment count for each post under the month, but I would like to remove the total number of articles published in each month… can u plz tell me the css code for that? thanks much

        • John says:

          Never mind, i just found it :) this is the code in case anyone wants it, just add it to your CSS, it will remove the number of posts for each month – thx

          .car-yearmonth span {
          display: none;
          }

  77. thanks

    tou can help me about plugin clean archives reloaded

  78. [...] plugin didn’t use to much query especially if you have large blog / post) other options are Clean Archives Reloaded and Extended Live Archive .. or browse the author of this plugin to see more archives [...]

  79. [...] ???????, ?????????, ?????Clean Archives?????: <?php wp_list_all_active_plugins(); [...]

  80. Johnson Yip says:

    I love this plug-in. It allows me to easily make a HTML based sitemap/archive for my blog running the latest version of WordPress. I like how clean it looks.

  81. [...] Clean Archives Reloaded ???????????????????????????????????? [...]

  82. [...] also installed a couple plugins.  The first one being Clean Archives Reloaded.  This plugin creates a collapsible list of all my archived posts, making navigation much [...]

  83. ryan says:

    Love your plugin. Request: shortcode to remove the day number from in front of each post title

  84. [...] ?????http://www.viper007bond.com/wordpress-plugins/clean-archives-reloaded/ [...]

  85. Lix says:

    Hi,

    im really excited about this plugin but im having some problems. Right now my archives are stacked together tightly. No indents and no bullets. Will I have to do some work in CSS or am I missing a step?

    thank you for your time.

  86. HowToDoWiki says:

    Is there any way to keep it collapse by default?

  87. aprilius20 says:

    Hi there,

    OK, so call me a noob (well I pretty much am), but I need help with installing this plugin. Here’s what I did based on the install guide provieded by geekwithalaptop.com:

    1-I used the wordpress auto-installer, and then activated it via the plugins page.
    2-Created a new page, named it ‘archives’
    3-Using the HTML editor, I pasted into the type area, but nothing showed up when I viewed the page. Same goes for when I used the -code- function.
    4-I then tried the ‘Visual’ editing panel, and pasted again. When I viewed the page, all I saw was the text that I pasted:P

    @I also see that the link explains:

    Also, make sure under ‘Page Template’ you are using ‘Default Template’ as some WordPress themes have an archives template.

    However, I did not see this ‘template’ option anywhere.

    Appreciate any help, and thanks.

  88. nugroho says:

    dear Mr.Alex
    I am new to the website
    I was almost in despair, but thanks to this plugin makes my spirit again.
    God bless you

  89. roni says:

    hi,

    i want the archives to appear in my sidebar and i added [cleanarchivesreloaded] in my sidebar.php made sure that i have also activated the plugin but its not working, im just seeing [cleanarchivesreloaded] as it is.

    i must have missed something out, help please.

    thanks in advance.

  90. roni says:

    Use Javascript to make the months collapsible

    Month Ordering
    Show newest months first

    Post Ordering Within individual months…
    Show newest posts first

    now im getting this Fatal error: Call to undefined function cleanarchivesreloaded() in C:\xampp\htdocs\wordpress\wp-content\themes\classic\sidebar.php on line 16

  91. [...] in the sidebar and wanted a specifc page for them.  I created the Archive page and installed the Clean Archives Reloaded plugin that I feel serves as a better overall archive and site map than one in the sidebar.  Lastly is a [...]

  92. [...] Clean Archives Reloaded [...]

  93. [...] Breadcrumb Navigation: Breadcrumb NavXT Broken Link Checking: Broken Link Checker Archives: Clean Archives Reloaded Post Number Per Page: Custom Post Limits Recent Posts: Post Plugin Library, Recent Posts Writing [...]

  94. [...] ???????,????????????????????????,????????????,?????!???Clean Archives Reloaded ?????,?????????,????,???????!(2009.12.04/2010.05.09 update) [...]

  95. [...] ???????, ?????????, ?????Clean Archives?????: <?php wp_list_all_active_plugins(); [...]

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

If you wish to post code, write it like [code]blah[/code] so it will display properly.