BACK TO DIRECTORY

Simple Post Expiration

by Syed Balkhi

4.6
(7 ratings)

A simple plugin that allows you to set an expiration date on posts. Once a post is expired, “Expired” will be prefixed to the post title.

You can show the expiration status of a post using the [expires] short code.

The [expires] short code accepts 5 optional parameters:

  • expires_on – The text to be shown when a post has not yet expired. Default: This item expires on: %s

  • expired – The text to be shown when a post is expired. Default: This item expired on: %s

  • date_format – The format the expiration date should be displayed in

  • class – The class or classes given to the DIV element

  • id – The ID given to the DIV element

The %s will be replaced with the expiration date.

Have you found a bug or have a suggestion or improvement you’d like to submit? This plugin is available on Github and pull requests are welcome!

Screenshots

Metabox added to each post / custom post type

Metabox added to each post / custom post type

Metabox with calendar showing

Metabox with calendar showing

Expired post with modified title

Expired post with modified title

Expired / Expiring Posts  widget

Expired / Expiring Posts widget

Plugin Details

Active Installs
400
Total Downloads
16,986
Version
1.0.1
Requires WP
3.6
Requires PHP
Tested Up To
4.7.35
Added
2014-08-19
Last Updated
2016-10-10 3:26pm GMT

Ratings

5
5
4
1
3
1
2
0
1
0