WordPress Post Expirator 1.4 Released

The latest version of the Post Expirator plugin is now available!  I have fixed the compatibility issues with WordPress (still works on WordPress MU), added the ability to expire posts/pages on the minute and fixed the timezone issue to pull from the timezone configured for WordPress.  I have also done some initial testing on the 3.0 alpha trunk – and everything works as advertised!

The plugin can be downloaded at the WordPress Plugins Page.  Enjoy!

31 thoughts on “WordPress Post Expirator 1.4 Released”

  1. Hi — I love your Post Expirator — worked like a charm. However, after I upgraded to your latest version, it’s not been working right — I set the expiration time and the post appears for a little while, but then expires and goes to draft status — although the correct expiration date/time still appears on the post. My time settings for the blog are correct. Any idea why this could be happening? Thanks!

  2. What version of WP are you using? How long does the post stick around? Does it disappear at the minute mark that you have the expiration set to?

  3. Hi! I am using WP 2.9.2. As soon as I enable Post Expirator for the Post and choose a date and time, save and close the post, the post appears for like one refresh, then disappears again. When I go back to the post to see what happened, Post Expirator is still enabled, my expiration date/time appear just as I’ve set them, but the post no longer appears on the site, as it has changed to Draft status. Thanks!!

  4. I setup a fresh install for 2.9.2, set the timezone, installed the Post Expirator plugin (left all settings default) – and the expire functions worked as expected. Is there anything weird about your install? Can you provide some more information about the server environment its hosted on?

  5. Hi.

    Really great plugin, exactly the kind of functionality that I’m looking for.

    I have one question, which is to do with sorting options. I’m putting together a website that lists events as blog posts, and I want to sort them by expiration date. The plugin obviously allows me to easily *set* the expiration date, but I’m unsure as to how to use that variable for sorting the posts. Any advice would be much appreciated.


  6. The date is stored as a utc unix timestamp as a standard ticket meta item so you should be able to pull out the meta key “expiration-date” and do any sorted needed.

  7. Rather than change the status to draft, could you please provide info (which script and sql) to simply change the category to an ‘Expired’ category?

  8. Hello,

    I’ve been looking for a similar plug in for a long time, there’s just one tweak I’d love to be able to see to yours.

    I run a coupon site and rather than delete every coupon as it expires I would like ‘EXPIRED:’ to appear at the front of the title. Is this possible?

  9. Is it possible to enable your Post Expirator for custom posts in WP3.0? It works like a charm for normal posts, but I’d like to use it on my custom “news” and “event” types.


  10. using v. 14. newest and evrything is set for 12 hour time format everywhere and it is still showing up in 24 hour format any suggestions…

  11. I love this plug-in but would love to find out if there is a way to clear out all categories and assign a new one instead of either deleting or making a post into a draft.

  12. Hello

    I am trying to use your plugin but it won’t delete the post.
    I’m working local with wordpress 3.0, using wamp, and on a theme called sublime (solostream theme).

    I wondered if this may have to do with timezone since I am currently in France, so maybe I should do something to adapt the script ?
    but well, I am not a developper, i know close to nothing about PHP, I read something about timestamp but did not understood it all…. May you please help ?


  13. Hi Aaron

    Great plugin… Love the features, but could you please add the feature of sending the expired posts to a “expired posts category” or something like that… Also localization would be nice…

    Keep up the good work..

    Kind regards

  14. Hi !

    I use WP 3.0.1 and your 1.4 last version. But i have see the same problem like Robin. I am sure i have the right time and the experation time, but i don’t know why your plugin don’t delete the posts the time how i give but it remove after many hours. I think 3 about. This problem i didn’t have it on your old versions. What i have to do ? How to fix this ?

  15. Hi, You seem to have exactly the plugin I’ve been looking for, but it doesn’t seem to be working. I’m running WP 3.01

    I’ve tried on a couple of different posts, and nothing happens. I’ve had a look at the error logs on the server and there are none.

    Any ideas?

  16. Excellent plugin, just what I was looking for.

    I am having a problem with the time zone though…for some reason the plugin is 5 hours ahead of what my blog is set to.

    I’m running WordPress 3.0.1

    Any help would be great…thanks!

  17. I am using the 3.01 of WP and the latest version of your Posts Expirator. However, it is not pulling the time from WordPress to expire the post. If I tell it to expire at 11 am, it expires the post at 4 pm instead – exactly 5 hours off.

  18. Actually, it’s not expiring posts at all. It posts the wrong time, then doesn’t expire them. Could caching be intefering with the removal of posts? I am using WP Total Cache

  19. I have Post Expirator and it worked fine util i upgraded WP to 3.1-alpha.
    Now it doesn`t delete or send to draft my post.It does nothing.My post remain published.
    No errors no nothing just doesn`t work.

    Any advice?


  20. Howdy! Good job with the plugin, but the timezone is not right. My timezone is GMT+2 and the plugin shows GMT+0. I’m using WordPress 3.0.1.

  21. Do you think you could add this shortcode/tag?

    It would be very handy to be able to add a shortcode to a page, to be used as a report, showing a list of all the upcoming posts that will expire in the next x days. This way I could have different pages to show me a report of posts expiring in the next week, next month, etc.

    eg: [postexpiratorreport days=7]

  22. I love this plugin, Bravo!.
    I wonder how to prepare my file functions to automate post completion of a month, a year …., etc. without going from the post.
    You see, no plan and my age makes me a little start now.
    I would be grateful if you send me an answer, thanks from Spain.

  23. Hey Aaron,

    I just installed your plugin (v1.4) on a WP 3.0.2 client site, and it appears I’m having a timezone issue. I set the post to expire at 13:30 (1:30pm) but in the post it says it is scheduled to expire at 6:30pm on the date I had specified…

    Nothing wrong with the timezone setup in WP, and the date/time on my web host’s server is fine (I’m using SiteGround and have several sites on sub-domains).

    Here is a link: http://darbi.mynewsitepreview.com/biz-networking-lunch

    Any ideas? Thanks in advance…

    1. Okay, so the post expired at exactly the right date & time…looks like it’s just a problem with the footer text that displays in the post before it expires. I just disabled the post footer display.

      Any chance of adding a feature, to change an expired post to another category rather than ‘draft’ or ‘delete’? I’d donate to see that… 🙂

      1. Whoa! I figured it out myself.

        Change this:

        if ($expiredStatus == 'delete')
        else {
        wp_update_post(array('ID' => $a->post_id, 'post_status' => 'draft'));
        delete_post_meta($a->post_id, 'expiration-date');
        update_post_meta($a->post_id, 'expiration-date', $a->meta_value, true);

        …to this:

        if ($expiredStatus == 'delete')
        else {
        wp_update_post(array('ID' => $a->post_id, 'post_category' => array(47,!8,!37)));
        delete_post_meta($a->post_id, 'expiration-date');
        update_post_meta($a->post_id, 'expiration-date', $a->meta_value, true);

        I used ! before a couple of post categories, in order to remove my expired post from those and place it into a new category.

  24. Hi,

    I’ve installed this plugin but dont working. I’ve inserted correctly the expiration day in posts, but when the cron execute the script (expirationdate_delete) nothing happens!!!

Comments are closed.