Generally, in order to guarantee the proper and smooth website running, it is not recommended to delete your blog posts that take you some times and energies to come out. However, this suggestion is not for some special articles that have the timelines, such as the news, promotional campaigns, event registrations, discounted activities and many more. Generally, these kinds of posts need to be deleted after their post expiration. After all, they may devalue the overall quality of your website content.
Since the update of Google Panda, only focusing on coming out quality articles and updating the old posts are less enough to improve your content quality. In addition, removing some time-sensitive posts after specific days is also critical. In the following, we’d like to tell you how to do this in an automatic manner.
Auto-Delete WordPress Posts
WordPress is backed by a large number of plugins that can achieve different purposes. This time, we’d like to recommend the Post Expirator plugin.
After installing and activating it in your WordPress admin, you need to click the Post Expirator button from the Settings drop-down menu. Here, you can check the general setting page of this plugin, which requires you to determine the default configurations, category expiration and footer display.
This section decides the date format, time format and the default date/time duration. The first two options can be left unchanging as they indicate the shortcode for displaying the expiration time. As for the last setting, you can use it to decide whether to set a default expiration time for each new post and page. Personally, we recommend you to set it to the None value.
In this area, you can decide the default expiration category for your blog posts. By choosing one, all your posts put into that category will be automatically removed after some specific times.
Post Footer Display
If you enable this option, you can showcase the expiration date at the end of your blog posts, coming with your self-decided footer contents.
In addition to these general settings, you can also navigate to the Default setting page, from which you can decide some default values for your posts, pages and forms. For instance, you can choose the default expire actions among putting into drafts, putting into the privacy folder and deleting to the trash folder. Also, you can choose to enable the automatic expiration for all the newly-published items, and showcase the meta box for expiration in the post editing page.
Now, you can go back to the editing page of your posts or pages. Here, you can find a special meta box just like the following screenshot in the right hand of the whole screen.
From this box, you can decide the expiration time and date. If you do not decide the default expire actions in the settings pages, here, you also need to choose how to expire your posts. In addition, do not forget to click the box for enabling the post expiration function.
Now, you can publish your post and have it deleted automatically after some specific times.