How to Auto Expire Posts in WordPress

If you want not only to schedule the publish date of a post or custom post type in WordPress, but also the expiration date, there are a few plugins that can help you out. These plugins will enable the setting of a time span for posts.
Our Sponsors
Essential plugins for your WooCommerce store
Build unbuildable WordPress websites
The best no-code Instagram feed plugin for WordPress

If you want not only to schedule the publish date of a post or custom post type in WordPress, but also the expiration date, there are a few plugins that can help you out. These plugins will enable the setting of a time span for posts.

Post Expirator

The Post Expirator plugin allows the user to set expiration dates for both posts and pages. There is a configuration option page in the plugins area that will allow you to seperataly control whether or not posts/pages are either deleted or changed to draft status. Additionally you can also choose to have the post categories change at expiration time. If you choose to change the post category, the default action of changing the status will be ignored.

The plugin hooks into the wp cron processes and runs every minute by default, but can be configured to use any cron schedule (hourly, twicedaily, daily, etc).

The expiration date can be displayed within the actual post by using the [postexpirator] tag. The format attribute will override the plugin default display format. See the PHP Date Function for valid date/time format options.

Download Post Expirator

Posts Auto Expire Control

The Post Auto Expire Control is a plugin for admin of multi-authors site/blog to control the posts expiration based on the user role and post type.

Plugin Features:

  • Define post expiration rules based on user roles and post type.
  • Define action that will be taken when the post has expired.
  • Sent notification to post’s author before the post is about to expire.
  • Configure the subject and content of the notification email.
  • Define when the notification mail should be sent.
  • Admin able to change the expiry date for a single post.

Download Posts Auto Expire Control

If you enjoyed this post, make sure to subscribe to WP Mayor’s RSS feed.

Jean Galea
Jean Galea
Jean Galea is a WordPress developer, entrepreneur and padel player. He is the founder of WP Mayor, the plugins WP RSS Aggregator and EDD Bookings, as well as the Mastermind.fm podcast. His personal blog can be found at jeangalea.com.

Consider sharing this post so others can find it:

Share on facebook
Share on twitter
Share on linkedin
Share on reddit
Share on telegram
Share on whatsapp
Share on pocket
Share on email

Join thousands of people receiving real-world, genuine evaluations of WordPress products and services just like this one every week.

Table of Contents

4 Responses

Leave a Reply

Your email address will not be published. Required fields are marked *

The Beginner’s Handbook
From an introduction on how WordPress works to our recommendations on products and services.

Join thousands of people receiving real-world, genuine evaluations of WordPress products and services

A single weekly email directly to your inbox.