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 (90,500 downloads)
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.
I’m getting the same issue as Roni.
I added it to my sidebar as:
TIA,
Mick
hoping someone would help.. this is a good plugin but unfortunately i can’t use it..
You guys are missing the underscores:
This is a great plugin but would love to be able to make separate pages for each month of each year. Only because we write about 200 articles per month, so after a year the page would have 2400 article links on one page.
I know people have asked this already, but I figure I’d add my two cents that I think it would be great if there was a shortcode to call specific months of certain years for individual pages.
Thanks for the hard work!
Works on my Blog
Many thanks for the author.
I tried this plugin but seems like I am doing something wrong. The archives page shows a list of pages, categories, months, authors, and posts. It doesnt look like the one in your demo.
Please help!
Hey! Thanks for the awesome plugin! Looks awesome on the site, and I plan on incorporating it into another site I’m working on now.
http://www.drgphoto.com and http://www.fortheblog.com.
Link-luv at the bottom too,
Daniel
Viper, I’ve been using this plugin for some time now but I’ve recently re-installed it on a client site and it isn’t working. All I’m getting is a blank page. I know I’ve inserted the code correctly on the page. Not sure what the problem might be. It looks like others have had this problem too. Could it be an incompatibility issue with certain themes?
It could be running out of memory. I would suggest checking the server’s error_log or turning on display_errors.
My plugin tries to use as few database queries as possible, but it does so at the cost of using more memory. On my (long) todo list is making this an option — few queries, high memory usage vs. lots of queries, low memory usage.
OMG. Help. I love what your plugin does and it worked on WP 3.0 Multisite just fine – but for one hitch. While it displayed perfect archives on a page I named Archives, it ALSO turned the Home page, which used to display my posts, into an archive page as well.
I’ve deleted the archives page, uninstalled and then deleted plugin and now, when I enter http://thisonewildlife.com in any browser, it adds “/archives” to it. Of course, since deleting the archive page, http://thisonewildlife.com/archives gives a 404 error.
Why does my domain name add “/archives” to it now? More importantly, how do I make display my posts again? Right now it’s just a shell with sidebars.
I’m frankly not sure. Double-check your URLs set at Settings -> General, or maybe try using the default theme. Also disable all plugins, etc.
PS: In Settings>Reading, I tried to reset the front page to display posts but with no change. I then tried to set the front page to a specific page. It won’t do that either.
Thanks for the response – and thanks again for the terrific plugin. Turns out the Redirection plugin is automatically overwriting my home page with the archive page – but only after adding the CAR code. I guess these plugins like each other enough to sneak out and play together. After confiscating their incriminating notes, I’ve grounded them both and all is right with the world once more.
Did you ever figure out what happened and how to correct it? I have the same issue right now, but I want to keep using Redirection (not CAR though unfortunately).
This is a great plugin. Thanks much
Some queries though –
How do I change the default CSS used in the plugin to suit my theme?
Is there a way to show up archives by category along with archives by month?
Appreciate your inputs.
My plugin doesn’t provide any CSS of it’s own really other than modifying the cursor when hovering over a month. It’s just a standard nested unordered list. You can use the classes that the plugin applies to it’s output though to style it. Just add the rules to your theme’s
style.cssfile.And no, my plugin does not support category archives.
Check the accordion menu at the sidebar of my blog, find the “Table Of Content” menu. That is the work of Clean Archives Reloaded plugin. Many thanks, Viper!
Unfortunately, when I installed it in my other blog, it doesn’t works. It shows a blank page… What is wrong with it?
It could be running out of memory (my plugin is a bit of a memory hog). Check the error_log or turn on the displaying of errors.
I’m sorry but it doesn’t work with gForum template
Trying to show content instead of the title.
get_the_title( $post->ID ) is showing up the title.
I tried few tweaks but could not work out. Any suggestion.
Yes,
get_the_title()fetches the title, hence the function name.Try
get_the_excerpt( $post->ID )or something else instead.Great plugin – exactly what I was looking for! I’ve tidied up the jQuery a wee bit. Doesn’t really make much of a difference, just ditched a few lines!
If you’re interested:
jQuery(function($) { /* Fancy archive stuff */ $('.car-monthlisting').hide().filter(':first').fadeIn(); $('.car-yearmonth').click(function() { $(this).next().slideToggle('fast'); }); $('.car-toggler').click(function() { if ( '<?php echo js_escape( __('Expand All', 'clean-archives-reloaded') ); ?>' == jQuery(this).text() ) { $(this).parent('.car-container').find('.car-monthlisting').fadeIn(); $(this).text('<?php echo js_escape( __('Collapse All', 'clean-archives-reloaded') ); ?>'); } else { $(this).parent('.car-container').find('.car-monthlisting').fadeOut(); $(this).text('<?php echo js_escape( __('Expand All', 'clean-archives-reloaded') ); ?>'); } return false; }); });Thanks. It’s been a while since I wrote that old crappy jQuery. My skills have improved a fair amount since then. Infact I should make that into a stand-alone file and use variables for the strings.
Great Plugin! Thank you very much!
Are there any update scheduled in the future for this great plugin? It is a bit…old now!
It’s on my long todo list. I wouldn’t expect an update any time soon due to higher priority projects.
Nice plugin! But in WordPress 3.0.1 I got a error “Headers already sent by” clean-archives-reloaded.php in wp-include/pluggable.php on line 890
After deactivation everything gone ok.
Please help!
First I’m hearing of such an issue. Are you sure the issue isn’t with another plugin?
I deactivate your plugin and this error is gone. I use the plugin many times on my sites, and everything work fine, but I use WP 2.7-2.9…and on WP 3.0 I receive this annoying error…
What error?
I got the same error
Hi Alex,
I hate having to use 128 MB for my PHP memory limit for one page (64 bit Ubuntu). How about a non-JavaScript version that doesn’t collapse at all?
The issue has nothing to do with Javascript. The only thing the Javascript is doing is collapsing months. Without the Javascript, it’d look like the “Expand All” view.
I’ve just released a new version of this plugin that should greatly reduce the memory requirements of this plugin. I have no idea why I didn’t think of the solution I used earlier. Here I was this whole time thinking it was going to be a lot more complicated.
Let me know if you run into any issues everyone.
That did the trick for my sites. I can now use WP’s default of 64M without a hitch.
Great? Thank you very much!
Want to update:
but….
Incompatibel archief PCLZIP_ERR_BAD_FORMAT (-10) : Unable to find End of Central Dir Record signature
There was an issue with WordPress.org. It’s been fixed.
thnx
Hi, Alex, your archive plugin is awesome. Thanks a lot!
I have a question, can I set “expand all” as default instead of must clicking it every time? Thx!
Settings → Clean Archives → Uncheck “Use Javascript to make the months collapsible”
Alex,
I like your plugin for archived posts. Actually, I like both plugins and I appreciate.
Thx
will
Is there any way I can exclude certain categories from showing up in the archives? In the previous versions I could do it using the get_post query, but I see that you’ve removed it in the latest version. Thanks!
Would love it if the plugin collapsed to years as well as months! In any case, this is the only archive collapsing plugin that actually shows up after I’ve activated it.
Thanks.
pvener
Quick Online Tips recommended your plugin and I think it is great to try it now. Just uploaded it to my site’s server.
Hi, I’m checking out different archive plugin to find one that run efficiently on sites with thousands of posts. But I’m not having much luck.
You claim that your plugin is “highly efficient”, yet it does at least one SQL query per post (I’m assuming it does that in the get_permalink() line), and this is similar to lots of other archive plugins out there.
This isn’t ideal for me because my site has 10,000+ posts, and I don’t want to kill my database.
Can you comment on your reasons for writing your plugin this way or if you have any plans to change this in a future release?
How else am I going to link to the post?
get_permalink()is required.If you’re that concerned about database queries, then install a persistent object cache plugin. W3 Total Cache for example will do it.
I agree that
should be used (as opposed to rewriting core WordPress functionality). My point, however, is that your plugin advertises that it only makes one database query when in fact it makes 1 + however many posts your site has.
I’m not trying to just be like, “I told you so … “, I’m actually just trying to find a good solution to this issue. Until I find a better option, this is what I do:
Then I can pass a post object to
, so another query isn’t required. But that seems like overkill as well.
I’ve posted this topic on stackoverflow:
http://stackoverflow.com/questions/4778421/is-it-possible-to-have-get-posts-or-wp-query-not-return-the-post-content
Getting this error
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
code there is
if ( $is_IIS ) { header("Refresh: 0;url=$location"); } else { if ( php_sapi_name() != 'cgi-fcgi' ) status_header($status); // This causes problems on IIS and some FastCGI setups header("Location: $location", true, $status); } } endif;You’re looking in the wrong file. The issue is at like 1316 in
\custom-field-list-widget\widget_custom_field_list.php.My plugin should not send any data before the headers are sent (which would cause that error). Make sure you uploaded the plugin correctly and so forth.
Great plugin and amazing functionality! One question, is there a way to simple hide the months and show posts from a certain year when you click on the year?
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.
Wow, this brings back memories! I’m very glad to see that this plug-in is still around in it’s various forks and versions.
You’ve done a great job with it Alex.
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
Sounds like you have a Javascript error on your site. The collapsing and expanding is done using Javascript.
Can you triple check the URL to your site so I can take a look at it? The URL in your second comment (I deleted it and edited your first comment) doesn’t work either.
Hi Alex, thank you for your reply.
This is my (test)website: http://www.tangotest.altervista.org/
I put your plugin in the voice “Archivio” in the top menù.
Is it possible also show the author name close to the title of the post in your plugin?
Thank you again
really good plugin
I don’t support modified versions of my plugin (you’ve removed the functionality). The expand/collapse seems to be working correctly though.
Hi,
just a quick question.
I have password-protected posts on one of my sites that I use your plugin on that don’t show up in the archive listing.
Is this intended behaviour or am I just being too dumb to get it right again?
Great and simple plugin, by the way.
This is intended behavior.
Thanks for the quick reply!
Glad I’m not the idiot again (for once)
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
.
Thx!
.
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.
Thank you very muchfor your help.
I try desactivate minify plugin: javascript errors
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.
Plz reply to my query and provide some way to fix it.
The second checkbox on this plugin’s settings page controls that.
wow.. that’s amazing. Cant believe this was so easy to opt out and I never noticed the plugin settings. Thanks a lot Alex.
how to use?
Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 710026 bytes) in /home/xxx/public_html/xxx.com/wp-includes/post-template.php on line 168
~~~~
I tried to ask the host to increase the memory… but they just telling me it’r coding problem.
Can you please confirm there is no coding issue on your part here ?
Or it’s true this is your plugin poor coding problem (as hostgator claims), then any help ?
~~~~
tickets@hostgator.com to me
My colleague is correct,
This is a coding issue and we are not able to correct the issue. Please contact the plugin developer for further support.
As always, our goal is exceptional service. Thank you for choosing HostGator!
Sincerely,
Grayson P.
Thank you for this great Plugin!
The Plugin is great, thank you for this!
Great plugin. Thanks for creating it!
Awesome plug in!
Hello,
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
That’s because you have it wrapped in a
<pre>tag which disables line wrapping for anything inside of it.Oh Wow Alex! Thank you so much! I’m a new blogger so still learning on a daily basis. It worked. Thanks again! Great plugin here! Good job!
I’m working on a website where I want to filter out anything in the “uncategorized” category, including the clean archives. I know I can do this:
$filtercat = $wpdb->get_results( “SELECT object_id FROM $wpdb->wp_term_relationships WHERE term_taxonomy_id = ’1′” );
I just don’t know how to compare it or combine it with the “rawposts” query to remove those posts from the result. I’m sure I could do it directly with MySQL, but $wpdb is a different beast.
Any help?
Probably easier to just hide them. Add the highlighted lines to the plugin (the unhighlighted lines are for context):
$firstpost = TRUE; foreach( $posts as $post ) { if ( in_category( 1, $post ) ) continue; if ( TRUE == $firstpost ) {I didn’t think of that. Duh.
Thanks, Alex. I had it backwards though, so it would be !in_category( 1, $post ).
I’m using a custom taxonomy and they’re all uncategorized under the standard categories.
Oops, didn’t work, although I don’t know why. This is what I get:
November 2011 (25)
10: (0)
09: (0)
09: (0)
09: (0)
09: (0)
09: (0)
I purposefully did not include an exclamation point in my code because you said you wanted to exclude that category, not limit results to that category.
You should use the exact code I gave you.
Or better, use this improved code I just came up with:
// Loop through each post and sort it into a structured array foreach( $rawposts as $post ) { if ( in_category( 'uncategorized', $post ) ) continue; $posts[ mysql2date( 'Y.m', $post->post_date ) ][] = $post; }'uncategorized'can be replaced with the category’s ID (i.e. 1 or whatnot) for improved performance.Thanks for helping, but it’s not worth the effort. That last bit just gave me the blank screen of death.
I like the plugin. However, anyway to change the default text: “… recipes published since we online”? Thanks.
The text you are describing is not a part of my plugin.
hi
i have problem with clean archives reloaded. it show all months with posts
http://foto.urmo.ee/archive/