Connect with us

HOWTO'S

How to Expire Posts in WordPress

Published

on

How to expire posts wordpress 0007d91f

Whether you own a personal blog or run an eCommerce store, content plays a cornerstone in generating traffics and collecting revenues. However, apart from offering great content, it’s extremely important to remain your content evergreen. 

To achieve that, you need to consistently manage, filter and remove outdated or time-sensitive content from your site, which expires posts proves a smart idea. 

While WordPress allows you to remove posts in just a heartbeat, it doesn’t include any built-in features to set post-expiration per your needs. 

It’s time post expiration and protection plugins come in handy!

In this article, we’ll bring forward 2 approaches in expiring WordPress posts. The article will begin with an explanation on why you need to expire your posts, types of post-expiration, then guide you through the processes of expiring your posts via dates and passwords. 

Let’s dive in! 

Advertisement
  • When You Need to Expire Posts in WordPress

  • Types of Post Expiration

  • Enable Custom Post Expiration by Protecting Pages and Posts

  • How to Set Post Expiration Dates in WordPress

When You Need to Expire Posts in WordPress

Post expiration proves useful to time-sensitive content, such as promotions and private deals. Imagining that you offer coupons, discounts, giveaways, etc. within 3 days, customers would be confused if they still bump into these offers after the given time. 

What’s more, similar to product restriction in e-commerce, post-expiration contributes to triggering user interest by creating an artificial shortage. Setting an expiration date will add a degree of urgency to your posts. If customers don’t take action soon, they will miss out on the big deal or the last chance to hunt their favorite items. 

Plus, it’s necessary to apply post expiration to some seasonal content. For example, content about Christmas or Thanksgiving will be soon less relevant. Keeping them active may cause your site to be cluttered up and lose focus. 

The common question is “Can I just delete these posts manually?”

The answer is always YES, definitely! However, it’ll take you a tremendous amount of time and effort! Think of running and managing an eCommerce store with hundreds of products. Manually removing deals/discounts on each product will waste your precious time! Instead, you can reserve your time and efforts to fully customize your online stores for the better!

Aside from that, another matter that should be considered is how quick and accurate you typically are. Will you ensure to remove the deals at 9 p.m but not 9.01 p.m?

Advertisement

As a result, leaving post expiration plugins handles this task makes your life much easier. With its built-in automatic and accurate timer, you’re free from forgetting and delaying having your posts expired.

Types of Post Expiration

Depending on your purposes, there are mainly 2 types of post-expiration that you can opt for: regular expiration and the custom one.

Regular expiration is the easiest and most popular way to expire posts in WordPress. It refers to how you simply define a specific date and time to get particular posts expired. In other words, you can’t add further customization on your expired posts and they’ll expire for everyone. 

On the other hand, custom post-expiration allows you to set an expiration on various posts, on different dates and times, and to specific target users. This type of post-expiration is best suited for any users running a membership site, as they can freely expire and un-expire a distinct post via user roles. 

Since you have a comprehensive overview of expiring posts in WordPress, in the next section, we’ll walk you through how to expire posts in WordPress via passwords and dates. 

Enable Custom Post Expiration by Protecting Page and Post  

This post expiry concept comes in handy when you wish to selectively expire posts for specific users. Or in other words, reserving other particular posts to target certain groups of clients. 

Advertisement

Trusted by thousands of customers across the world, the Protect WordPress Page and Post (PPP) plugin is recognized as one of the most advanced plugins for securing your content. It is indeed a simple yet effective solution when it comes to custom post expiration. 

When enabling your posts with PPP, you’re able to secure their original URLs and at the same time create protected URLs for your posts. This means that any users with the original and unprotected links can not access those pages. Instead, they will be redirected to a 404-not-found page. 

What’s more, the plugin also supports you in expiring protected links. In other words, you can set a given time or a number of clicks for protected links after which they’ll automatically expire. 

Assuming that you have PPP installed and activated, the process of setting custom post-expiration will take place based on 2 main stages:

  •  Shield the posts’ original URLs

  • Grant access to your post via user roles 

Shield Individual Post

  1. In your WordPress dashboard, go to “Posts” and you’ll see a newly added “Content Protection” column. Hover your desired post and click on “Configure protection.”

n69XkqXAdZ5fHHkUobiUOQDll0N nii4wJQLWf5NutKeF2H4sxtaY28Am0VW0rT5

  1. A new popup will show up. Simply hit “Protect this page” to protect your content.yYFjD1 iKPGKCAGMiJKKndTe H6a5bAs0AYINOrK38d7f5PxsUICja86FOObY tNU1ff 1Gp uZmr47Tuk GXQ19fVS0UnVKX3AtukmnGITQKQgSJzGJ OI5ERR6iRqkI mwhdo1

  2. Auto-generate an access link or customize a new one.

  3. Set access permissions for your protected links in the “Access Permission” tab. This will be explained in the next section.

Aside from that, the plugin lets you protect multiple WordPress posts at the same time with ease. 

Protect Multiple Posts At Once

  1. Go to “Pages” or “Posts” and choose which post you want to protect by ticking on the checkboxes. 

  2. In the “Bulk Action” option, choose “Apply Protection” in the drop-down and click “Apply.” All the selected posts now will be protected.

E3BjJyV0tXTb8DIOdT2463almbrtn7QT0LWv AjdcRqabMkdRhfkiVaAW1CwJfzZxri4mAHF7393ebZklTKrP wKfExmYnhz7g2wCQq44JDOpX NbNWLoRKkOEOxG Qd HaBuBY

 

Advertisement

Since you’ve protected your posts, it’s time to grant access to your target users. 

Grant Access to Your Protected Posts via User Roles 

Target customers with certain user roles can gain access to specific posts. You should set only logged-in users or some particular user role such as members, editors to be able to access these posts. 

  1. Go to Settings > Content Restrictions > Set Access Permission.

  2. Select “Choose custom roles” in the drop-down.

  3. An extra field shows up. Choose which user role to grant access in the dropdown.

Ftcevw27C2eHhXF3dm4H0Iqi59d4g2cJlriYRzIXVpuFCVNbT0RbpIphb gYuHOxaQxSMxVshzeH95kZMXuGCSicAGfUrjD3XuT7 3Hk EIAUmsVVIV1v9p3w iKe KlnjuNiKp9

That’s it! You’ve equipped yourself with how to custom-expire your posts using PPP Gold. This method works best for membership sites. In case you’re just a normal WordPress blogger and looking for a simpler solution on post-expiration, Post Expirator is a perfect choice. 

How to Enable Post Expiration Date in WordPress

Receiving over 100,000 active installs on the WordPress plugin directory, Post Expirator wins the title of the most favored plugin for regular post-expiration. This free plugin offers an ideal solution to create expiration dates for posts. 

The following tutorial will show 3 steps on how to create post expiration dates in WordPress: 

  • Step 1: Define the Time Zone for Your Site 

  • Step 2: Configure Settings

  • Step 3: Set Expiry Date for Your Posts

Step 1: Define the Time Zones for Your Site

The plugin will follow the time settings of your WordPress site, therefore, you need to set the website time zone before expiring any posts. The following guide will show you how to activate and define the time zones of your site:

Advertisement
  1. In your WordPress dashboard, go to “Plugins,” and click “Add New.”

  2. Look for the Post Expirator plugin in the search bar, then click “Install Now.”

  3. Click “Activate” to activate the plugin.

dZRHHPxoFRnBc0 GtOzmtwAT1p Xs ewtISU7nTCE5VbLAq4VaHp8VwyQs v75jIqR5Fh5qar7vl4MAsrMWJwxAA7ZFkfXXwkNf4tOoStlOmep1rBq5iPckGJ9b K8t Lr c5aW

  1. Head over to “Settings,” choose General > Time Zone.

ylUNkUIxJx6ADMZe8M8ZsZMv Xa3R I88ZyvbroTADN2oh1bwEM mKvbP

Step 2: Configure Settings

Before expiring your post, you should configure its settings to adjust some items based on your needs and purposes, including post status after expiry dates, time format, and so on.

  1. First, navigate to “Settings” and select “Post Expirator.”

  2. Under “Post Expirator Options,” there are 4 tabs that you need to modify: General Settings, Defaults,  Diagnostics and View Debug Log. 

vl6j2M0rNc07sPH oitv ABSvd76mlCB sh8fQILymmK3Fy oEQRXusrt9KOuRymGI85uKBYMksy8zQYeYoK6nVomvNgzC6jnSV1CtHhyTpOrP8oELeEAK1FUjRQOhUA3CKD7eoP

Let’s dive deeper into these tabs.

General Settings

This tab contains 4 smaller entries:  Defaults, Category Expiration, Expiration Email Notification, and Post Footer Display

Defaults

  • Date Format and Time Format: select your accustomed time format to easily manage your expiration dates.

  • Default Date/Time Duration: set the expiration date, which we will explain clearer in the next step. 

tWd6ZT49U8woVyrWrRl gAgkx2JfZdIFq9 AelwxV2QSNBzr9KaEKdjyIelv1v1 Aj5tgqddTCL 8 sDz9H35gEK2tIKfB2lq9pZU8AUbREjIq3ppWMugAnB6L0rUdSvVJt5ZZl

Category Expiration

Rather than removing posts, you can move them to other categories so that your users can find them again if needed. This is useful even for you in case you want to track and reuse them later for materials or references in the next events or promotional campaigns.

Advertisement

For instance, an expired giveaway post can be moved from the “Events for Loyal Customers” category to the “Expired Posts” one.

In Category Expiration, select a category that you want to move expired posts in. If not, you can leave this part empty.

2dVQRRyGiCcZltevsGOy59TkeB0t jIyXBNrhKI2ShRLMu3TusM2j 03g1JvoIoHLEOpuLnbuTcgDFwS5dXQiagl6aVf2km7BU43zSync451V0VL0BRvDAVXV7v991J ZrpFdPSo

Expiration Email Notification

This feature allows you to set up expiration email notifications or reminders. You’ll be notified whenever the post expires, which helps you easily check and control the posts hidden. By ticking in the checkbox, you will enable/disable the notifications as well as choosing who will receive them. 

gDrYC0M0iSkarJazT VQJ GKFfE5P

Post Footer Display

Normally, only you can see the expired date set in your posts. However, there are some cases that you’ll wish to display to users, i.e expiry date for candidates to submit their tests. 

Advertisement

This feature enables you to include the message in the footer, along with detailed information about the year, month, and time. 

5XKNzvf1tHGggCqLzKaVGXO N1WvqPXYNkxLdj7jNOsNgBu 2fQKWR jDRtwPXhHz5VdSti1ZpP3M52RCRA4f3Y1JSNgBhrs6ZzCuskHgjKVqnAfIpjyMQr9cG4w8QUkccKJ9NhP

Default Tabs

In the “Default Tabs” next to “General Settings,” you need to pay attention to the options in the “Post type:post.”

  • Active: display a section on the sidebar, inside the post/page editor to set expiry dates. We recommend you leave this one active as default. 

  • How to expire: define the post status after expiration. We will reserve this one for the next part. 

1cSn0j3sMTvzkjQgXH8Hrtdolzf6T6oegUBY7S JTl7rm2QLaproBLT7s 1B8 bBF1Qo87SpLIgUtwUrHXI6Gj39CePMoPxM9S4c7a9J ZGPC

Diagnostics and View Debug Log:

These two tabs provide configurations that assist you in diagnosing and fixing bugs. Skip this tab if you are a complete WordPress novice. 

For now, that’s all the settings you need. Scroll down and click “Save Changes.”  

Step 3: Set Expiry Date for Your Posts

Set Up a Default Expiration Dates for All Posts

  1. Go back to “General Settings.”

  2. In the “Default Date/Time Duration” option, choose “Custom.”

  3. Fill your custom expiration dates in an extra field. 

For example: if you want your posts to run out after 15 days, type “15 days” in that field. 

b f1l7 SSdxm2Q0f3xvdb 6ZDDXFyCbA5rVdmEZtQCmwigtzzhScBkxVOo7nsKSkummdWSq335GqIM9VMkYDx24Br5Esvit7yLYyjKxNB6LFSnohY2ghQaefZk2JWd4ruT k7Mih

 

Advertisement

After expiration, your post will automatically go back to the default status.

  1. Switch to the “Defaults” tab, in the “How to expire” option, you can choose to delete, put them in the trash, set them private, pin them on top, or move them to other categories (Category: Replace) and so on.  

sVgzuU5RH2HpaANWZ9uVHUn4ZV0xXStXf1mcU90D6MN8B09bXR54pVzgNmgZTjH2DPwqBA6TeLDILe54MB0rZG

Set Expiration Dates for Each Post

  1. Go to “Posts” and open the post you want to set expiration dates after particular days.

  2. You’ll see the “Post Expirator” section on the sidebar on your right side. Tick on the “Enable Post Expirator” checkbox to activate the expiry date function.

  3. Choose the exact date (year, month, date) that the post will be run out. 

  4. Finally, in the “How to expire” option, choose post status after expiration. 

mwtdV 3Ii7 C2vScFiBFYSDXMPKge4d4v8BJbnkdxAJuaVM0KLtvExnAoOwtWkJq2Z5LZunY9km x l5ffczKfBHbhJIu42oNnj

Ready to Expire Posts in WordPress? 

There is nothing more disappointing than a buyer running into your outdated discount advertisement, then realizing it’s already expired after eagerly checking out your website. This is similar to playing with fire as it may result in a high chance your site will get 1-star reviews from customers. 

To avoid this scenario, you should make use of post protection and expiration plugins to have your time-sensitive and seasonal content run out.

In general, the 2 plugins we recommended above share similarities in helping you to expire your posts in WordPress. The main differences arise from post-expiration styles and purposes.

While Post Expirator excels in adding regular date expiration to your posts, PPP takes custom post expiration to the next level by allowing you to selectively expire posts to specific users.

Advertisement
Keep an eye on what we are doing
Be the first to get latest updates and exclusive content straight to your email inbox.
We promise not to spam you. You can unsubscribe at any time.
Invalid email address