Have you ever wondered if you can set an expiration date and time for a post or a page in your WordPress blog?
There are many reason you want to expire a page or a post, some of them could be special deals, coupons, giveaways or even event announcements.
In this article, I will show you how to expire posts and pages in WordPress.
Post or Pages with expiration date can be created in WordPress either manually by using PHP codes or simply by using plugins.
Recently I have come across to a plugin called Post Expirator. This plug in allows you to set an expiration date and time to posts or pages which you can configure to either delete the post, change it to a draft, or even update the post categories.
So, go to Plugins\Add New and search for Post Expirator in you WordPress dashboard. Install and activate the plugin.
Once is activated, go to edit any existing post or page or create a new one and you would find a new metabox called Post Expirator. All you need to do is to enable by clicking the checkbox and specify the date and the time you want the particular port or page to expire. Once the post or the page is expired, the plugin is giving you the option to choose from. You can set it a draft, delete it, set it to private, or you can even change/add/remove the post category!
You can also go to the plugin settings as there are additional settings that you can configure there too.
I hope that this article helped you to understand how to set in WordPress posts and pages expiration date. Feel free to share your thoughts about this article using the comments section below or catch us on Twitter.