The ExpirationDate WordPress Plugin

This plugin has been revised to be the Atropos WordPress plugin, which provides a better interface. Please upgrade and use that one instead.

The ExpirationDate plugin lets you set a deletion date for your posts (and pages).

To set an expiration date, you add a custom field called “Expiration Date” (no quotes) with the deletion date as the value. The date should be in YYYY/MM/DD format.

Important Note: The expired posts/pages are DELETED. Be sure that you want to do this. I disavow any responsibility if you delete your entire blog because you weren’t being careful.

Example

Suppose you want to delete a post on November 18, 2008. You would scroll down to the Custom Fields section of the Write/Edit Post screen and enter “Expiration Date” and “2008/11/18″ like this:

Setting a Custom Field in WordPress

After it is set, it will look like this:

A Set Custom Field in WordPress

Caveat

This plugin uses WordPress’s cron feature. This allows you to set a time for things to happen, such as deleting a post. All well and good, except that it doesn’t actually happen until someone looks at a page AFTER that time. And then it takes a few seconds to actually happen. The net result for this plugin is that expired posts will still be there for the first page view of the deletion day and possibly several more if there is a lot of traffic around midnight. The post will be deleted, but not precisely at midnight. Such is WordPress’s cron.

Related Posts

  • The Atropos WordPress Plugin
    [08-Jun-09 Updated to note 2.7.1 compatibility.] The Atropos plugin lets you set an expiration date for your posts. This is done in a new Advanced Options section of the post edit page. ...
  • The Custom Rel WordPress Plugin
    BlueHostDreamHostGoDaddyJustHost Starting with version 2.8, WordPress automatically puts relational link tags in the heads of posts. This is not a bad thing at all. Not only are they st...
  • The No Revisions WordPress Plugin
    [09-Jun-09 - Checked against 2.7.1. After an upgrade, you need to deactivate and reactivate the plugin to turn off revisions again.] BlueHostDreamHostGoDaddyJustHost While the WordPre...

Leave a Reply

Get Chitika Premium Earn $$ with WidgetBucks!