I have been using Smart Archives for some time and I really liked it, but version 2.0 wasn’t up to snuff, in my opinion. So I decided to improve it, until I ended up with this plugin:

  • Easy setup - no code editing required
  • Better caching - no need to wait when publishing a new post
  • Settings page - elegantly choose how you want the archives displayed

Download Example

Version history

  • 1.2: better HTML output; various optimizations and bugfixes
  • 1.1: switched to wp_cron for updating the cache
  • 1.0: initial release

If you are having problems using this plugin, please mention it's version and the version of WordPress you are using.

Reacţii / 8

Comentarii / 46

  • Jeff says:

    The Smart Archives don’t even load when I call the function in my theme with either [smart_archives] or (http://equivocality.com/archives-index/). It just comes up blank. Smart Archives Reloaded is enabled and Smart Archives is disabled.

    Info:
    PHP Version 5.2.6
    Wordpress 2.6.1
    Smart Archives Reloaded Version 1.1

    I’m really hoping to get this working because I think version 2.0 of Smart Archives was a step backwards.

  • Jeff says:

    I guess Wordpress stripped the PHP out of my previous comment. I meant with either the [smart_archives] tag or the php code with do_action(’smart_archives’);

  • Jeff says:

    By the way, the first instruction in the readme file is “1. Unzip “Custom Field Images” archive and put the folder into your plugins folder (/wp-content/plugins/).” Did you mean “Unzip “Smart Archives Reloaded”"?

  • scribu says:

    I saw your archive page and noticed that the shortcode [smart_archives] was not converted. Is it inserted via the WP “Write Page” or inserted directly into the page template?

    Yes, thanks for noting that typo in the readme.

  • Jeff says:

    Actually I currently have both the smart code and the php code inserted into the template, not the write page. Now I understand that the [smart-archives] tag goes into the page only so I’ll take that out.

  • scribu says:

    Ok, now if you’re using WP (Super) Cache, please disable it and see if the archives appear.

  • Jeff says:

    Nope, I don’t have any caching plugins installed. If I look in the source of my archives page, it looks like the php function (do_action(’smartarchives’)) outputs a blank line.

  • scribu says:

    Ok, one more thing to check: go to the plugin dir and check if there is a cache.txt file and see if it’s empty.

  • scribu says:

    Nevermind, I found the problem. It is fixed in version 1.1.1, which will be available shortly.

  • Jeff says:

    Awesome, looking forward to using this plugin. Thanks for all your work.

  • Ben says:

    Hi Scribu, thanks for the great plugin, I really like it, however.. I am having one small problem. I have installed the plugin, but when I click on “2007″ or “August 2008″ for example it just reloads the page basically, but with the top section (with all the links in) in very small text. Is it just me?!

    Thanks,

    Ben!

  • scribu says:

    @Ben: If that is happening on your site, please give me the url so I can see for myself. If you are seeing that on this site, it is just you.

  • Apologies for a newbie question.

    After I install and click on Settings I get: “Cannot load smart-archives.” on this url:

    http://www.kaushik.net/avinash/wp-admin/options-general.php?page=smart-archives

    I would love any pointers. Thanks,

    Avinash.

  • scribu says:

    That link is static and might not work with older versions of WP. Can you access the page through the admin menu (Settings -> Smart Archives) ?

  • dumduku says:

    Hello,

    i have a problems with the plugin !
    I can not open the archiv.

    Error: Can’t open cache file!

    You can see at on:
    http://www.angeltechniken.de/?page_id=1317

    Can you help me ?

    Grettz from Germany

  • scribu says:

    That means that the plugin can’t write to the cache file. Go to the plugin directory, create a file called “cache.txt” and make it writable (chmod 777).

  • dumduku says:

    OK thanks, works fine.

    This procedure is not defined on the HowTO !

    greetz

  • scribu says:

    I’ve added it to the readme. Thanks.

  • chris says:

    Hi,

    i used smart archives before. switched to the reloaded. first i got a “cant open cache file” added the cache.txt but now i only get a blank page?

    i run wp 2.6.1
    smart archives is deactivated as well as execphp.

    thanks for this nice plugin hope to get it working soon

  • scribu says:

    Have you updated to version 1.1.1 of the plugin?

  • chris says:

    yes, i do have ver. 1.1.1

  • scribu says:

    I assume that this is the page in which you have inserted the [smart_archives] shortcode. Right?

  • scribu says:

    If you say you have execphp, try adding smart_archives() and see what happens.

  • chris says:

    i am not sure if i am doing it right, but seems like nothing is happening.

  • scribu says:

    Try inserting < ?php smart_archives(); ?> in one of your theme files, directly.

  • Hi Scribu. I am using wordpress 261.

    For some reason I don’t see the link under Settings at all. (Settings -> Smart Archives).

    I don’t know if this helps but the same error / problem occurred when I tired to use your Extra Feed Links plugin. Not sure if they are related.

    Thanks,

    Avinash.

  • scribu says:

    They are related because they use similar code. It might be a problem with your WP installation because I have never heard of this problem with any of my plugins before. Can you see the settings page of any other plugin?

  • Hi Scribu. I do have all other plugins (about 15) install and show up fine in Settings tab but not both of yours. : )

    I’ll be happy to give you access if you want to look at it. BUT I realize that you do this in your spare time so I don’t want to monopolize your time.

    I thank you for being so prompt in your replies.

    -Avinash.

  • scribu says:

    Yes, I’d really like to have a look. That way I can figure out what the other plugins are doing right. :)

    You can mail me at scribu at gmail dot com.

  • chris says:

    Hey scribu,

    it works now, not sure why, but i guess my own stupidity…

    thanks for this great plugin and for your support!!!

  • fryevhen says:

    The many thanks for the work! I the worshipper Of wordPress, and included your site in survey on my [bloge]. Regards from the Ukraine!

  • Ward says:

    I’m also getting the “Cannot load smart-archives.” error. And there is no link for the plugin under the options panel. Any ideas?

  • scribu says:

    Unfortunately, I wasn’t able to fix this problem on Avinash Kaushik’s blog. I’ll mail you beta version of the plugin with all the code in one file and see if that works for you.

  • Ward says:

    That would be great! Thanks!

  • Ward says:

    Tried the beta version and still have the same problem. Even if I turn off all my plugins except SA-reloaded. Strange.

  • A question to CSS with this Plugin.

    How i can add a CSS Style to this Plugin? Now the Archiv-Page doesn’t look good like the rest of my blog. The Links doesn’t have the same style…

  • scribu says:

    You can style the archives using the id of each list. See the source of the page.

  • Ward says:

    Just wanted to give an update. I upgraded to the latest version of WP this weekend. Now the plugin works perfectly. I have no idea why, but I’m happy that it now works! Thanks for the great plugin!

  • Beda says:

    How to format language of months?

  • scribu says:

    You will have to set the locale variable in wp-config.php

  • Wagner Frederico says:

    I’ve changed my wp-config.php already to “define (WPLANG’, ‘pt_BR’);” and a I installed pt_BR.mo in my wp-content/languages directory but the archives are still in English, not in Portuguese.

  • Wagner Frederico says:

    I’ve solved the problem using this:

    /setlocale(LC_TIME, ‘pt_BR’, ‘pt_BR.iso-8859-1′, ‘pt_BR.utf-8′, ‘portuguese’)/

    Thank you. Nice plugin.

  • Thanks for the plugin. Written about it and linked to you.

Exprimă-te / adaugă un comentariu