How to Expire Posts or Partial Post Content in WordPress
Have you wanted to set an expiration date for your posts or have some time specific content? WordPress currently does not have an automated way to expire posts but you can add this to your site. In this video, we will show you how to expire posts or partial post content in WordPress.
How to Enable Post Expiration Dates in WordPress
Alternately, you can simply set the post to “private,” if you want to keep your options open for later. Post Expirator also enables you to “stick” and “unstick” posts, or return them to draft format. You’re free to use any option you want, but we recommend sending posts to the trash to keep your library uncluttered. If you enabled email notifications earlier, you’ll have more than enough time to restore the content from your deleted articles before it’s gone forever.
Expire Partial Post Content in WordPress
The 4 parameters are “on”, “at”, “expon” and “expat”. “on” accepts a date, until that date is arrived the content will be hidden. “at” accepts a time. Time has to be set in 24hrs format. (date should be yy-mm-dd if you only pass time) “expon” accepts a date, the content will disappear from the page on this date. “expat” accepts a time. Time has to be set in 24hrs format. (date should be yy-mm-dd if you only pass time)
How to Auto Expire Posts in WordPress
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.