Instead of updating the cache at a regular interval, the plugin now updates when a post is published or deleted.

Also, an issue with accents should be fixed.

Finally, some optimizations were also baked in.

PHP5 is required

Reactions (2)

Comments (42)

  • Vince says:

    Thanks for the accents issue! It works well now.

  • Matías says:

    Hi Scribu. I have an old PHP 4.4.8. I have asked to my dealer if is possible to change it to PHP 5 or up buy I don’t know if they can.

    So, I want to know how can I get the plugin working with a php version under 5. I get this message in my WP admin panel when I activate the plugin:

    Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or ‘}’ in /home/visualq/public_html/v3/wp-content/plugins/smart-archives-reloaded/smart-archives-reloaded.php on line 27

    Thanks in advance.

  • Matías says:

    Thanks Scribu!!! Finally, I can change from my cPanel PHP to procces php files with 5 version.

  • Matías says:

    Hi Scribu. It’s me again. I’m having a trouble with the plugin. As you can see in this link, I cant get the current month of the actual posts in link format. I get only the link of the current year. On the other hand, month links of the older posts are shown as a link format.

    In resume: i want that the post of the current month will be grouped as a month link and none as a year link.

    Thanks in advance, your plugin is what I was looking for.

    ps: sorry for my bad english.

    • scribu says:

      The reason why most of the months are not links is because the plugin didn’t find any posts in them. Did you exclude any categories in the settings page?

      You can hide the empty months by adding this line to your style.css theme file:

      .emptymonth{display:none}

      In resume: i want that the post of the current month will be grouped as a month link and none as a year link.

      I’m sorry, I don’t understand.

  • Matías says:

    Hi Scribu.

    The reason why most of the months are not links is because the plugin didn’t find any posts in them. Did you exclude any categories in the settings page?.

    I understand how the plugin works and that’s what I was looking for: a smart archives plugin with excluding categories in block format.

    But, If you see at the example that I posted, take a look at the post from 2009. I made a testing post recently (the date: 24.01.2009). But the plugin only generates the link as a year link (2009) and keeps the month in course “Ene” (translation in english: Jan) as an empty month instead of a “month link”.

    Let me know if you can´t understand me. I really apreciate your help and patience. Thanks, once again.

  • Jason says:

    I have having the same problem as Matias.

  • Roy Nottage says:

    Hi Scribu! Great plug-in and I’m really happy with it.

    Only one problem – the post I’ve published since installing it doesn’t show up in the archive.

    Sorry if you have already answered this, I tried to have a read before commenting. You say the plug-in should update when a post is published?

    Thanks in advance.

    Roy

    • scribu says:

      I have a hunch about what is wrong. I will email you a test version of the plugin soon.

      • Roy Nottage says:

        Hey thanks for the prompt response!

        I installed the test version and that updated my archive fine (like when I installed the original).

        But I have posted 2 test posts to see if they would show. Neither have shown up in my archive.

  • eric says:

    i just installed the new plugin but in my plug-in panel it now shows a v 1.4.2 being installed, and also a version 1.4.1 in the disabled pane showing it needs updating!

  • Matthew says:

    There’s a duplicate month problem with the code. If you look at your archives page, it shows several months twice. Big problem!

  • fridaycafe says:

    same here, duplicate months …

  • Anita says:

    I’m working on WordPress locally, and your plugin was so easy to install and works! I don’t know why WordPress doesn’t have the Date / Post archives combo. Love it, Thanks!

  • Anita says:

    Hi,
    I added the php smart_archives code to my archives.php page. My permalink structure is /%category%/%postname%/ and the archives’ post names links work fine. However, the plugin linked month titles point to a default of date permalink structure by date e.g. /2009/03, which is a different structure, and I get a 404 page for the months. I don’t see where I can have both types of links work. Can someone please help? Thanks!

    • scribu says:

      That’s exactly the structure I use on this site and it works fine.

      What version of WP are you using?

      Please provide a full URL of each type (single post and date archive) along with the Site URL and WP URL settings.

      BTW, this is definetly a bug in WordPress, since this plugin uses the default functions to generate the permalinks.

  • Anita says:

    Hi, Thanks for responding. I’m only working on WP locally with MAMP at this point. So I wouldn’t have an actual working URL, only the structure. I just noticed what the reason is, but not sure how/where to fix it.

    My blog URL folder is at /musings/ not the base / (I don’t want my front page to be the blog address). That is probably why it gets confused, but not sure where to fix it in WP settings. How do I get WP to see my archives needs to have /musings/archives/ not /archives/.

    http://localhost:8888/wordpress/archives/ (works)
    http://localhost:8888/wordpress/musings/archives/ (doesn’t work, but what I wanted it to be)

    http://localhost:8888/wordpress/2009/03/ (works)
    http://localhost:8888/wordpress/musings/2009/03/ (doesn’t work but what I wanted it to be)

    • scribu says:

      I have seen other users having related problems. A workaround would be to create an actual folder /wordpress/musings/ and move your WP files there.

  • Anita says:

    Hi, but then what about my other Pages? They aren’t supposed to be under musings, but on their own. That’s ok. I’ll see what options I have. I wish I knew enough code to fix wp archive file, or something to use that /musings/ folder in the archive. Unless I can disable search by date somehow.

    • Anita says:

      I tested my site with my old customized archives page and disabled plugin and the archives page works. Seems WP admin has issues w/ the plugin code if blog is in another folder address. It’s okay if you can’t figure out why or whatever, thanks for responding.

  • Mark says:

    I like your plugin. Nice, clean, and simple.

    Two suggestions, a link below each month allowing the visitor to go back to the top where they can choose the next month or year or whatever.

    Also, not sure about this but is it possible to nofollow the links to each post in the archives?

    • scribu says:

      Glad you like it. :)

      a link below each month allowing the visitor to go back to the top where they can choose the next month or year or whatever.

      That’s an interesting ideea.

      is it possible to nofollow the links to each post in the archives?

      No, it’s not possible directly, but why would you want to nofollow links to your own posts?

  • ahdont says:

    i hi, good work on this plugin.
    i would like to changethe month abbreviation from three letters to numerics. april = 04 etc… i wonder how i can achieve this.
    i would also like to style it too, where can i find the specific class for months and years etc…
    cheers,

    • scribu says:

      Currently, there is no option to display monts by numbers because it would get sort of confusing.

      To see the classes, just right click on the page and select “View page source”.

      • ahdont says:

        will you implement it? or you will just leave it as it is? i try to find a way to do it, with the get_month_abbrev in the code but i don’t see how it will work. can you give me some pointers on that?
        cheers

  • ahdont says:

    doesn’t seems to do anything though?

    • scribu says:

      You have to reset the cache: Go to the plugin folder and delete cache.txt

      • ahdont says:

        excellent, it works! what if i want it to have a zero infront of it. 01 instead of 1

        • scribu says:

          Where you edited before, replace

          $i

          with

          sprintf('%02d', $i)

          I will probably include numeric months in a future release.

          • ahdont says:

            excellent, it works exactly i want it to be now. thank you so much! much easier to install then the original one.
            cheers,

  • Hello! I have been using this plugin for quite awhile, but just recently added it to a WPMU installation, and notice that it doesn’t work. Well, it does work – on the first MU blog that I installed this on that is. Is this compatable with wpMU and/or is there a way to make it work with wpMU? Thanks in advance for advice.

    • scribu says:

      I haven’t worked on WPMU at all so I wouldn’t know how to make this plugin work with it. But I will try to make it compatible with WPMU in the future.