Flash Sale:75% Off Hosting + Free DomainEnds in13h47m14sView Plans
Hostvento logoHostvento

Make a WordPress post expire on a set date

This guide shows two simple ways to hide a post after a certain date, such as an old sale or event.

CMS and Apps2 min read14 steps16 screenshots

What does it mean to expire a post?

WordPress is a program for building websites. A post is one article on your site. Expiring a post means it stops showing to visitors on a date you choose. It is useful for offers, events and news that go out of date.

Method 1: Use a plugin

A plugin is an add-on that gives your site a new feature. Several free plugins can expire posts. A well-known one is called PublishPress Future, which used to be called Post Expirator. Plugin names and screens change over time, so read the on-screen hints.

  1. Log in to your WordPress dashboard.
    Screenshot: Log in to your WordPress dashboard.
  2. Click Plugins, then Add New.
    Screenshot: Click Plugins , then Add New .
    Screenshot: Click Plugins , then Add New .
  3. Type PublishPress Future in the search box.
  4. Click Install Now, then Activate.
  5. Open the post you want to expire. Click Posts, then Edit.
    Screenshot: Open the post you want to expire. Click Posts , then Edit .
  6. Find the plugin's panel in the editor settings. It is often called Future Action or Post Expirator.
  7. Switch it on and choose the date and time.
    Screenshot: Switch it on and choose the date and time.
  8. Choose what happens: for example, move the post to draft, move it to trash or change its category.
  9. Click Update.

At the chosen time, the plugin does the action by itself.

Method 2: Do it by hand with a reminder

You do not need a plugin if you only have a few posts.

Screenshot: You do not need a plugin if you only have a few posts.
  1. Write the end date in a calendar on your phone or computer.
  2. On that day, log in to WordPress and click Posts, then All Posts.
  3. Hover over the post and click Quick Edit.
    Screenshot: Hover over the post and click Quick Edit .
    Screenshot: Hover over the post and click Quick Edit .
    Screenshot: Hover over the post and click Quick Edit .
    Screenshot: Hover over the post and click Quick Edit .
  4. Change Status to Draft.
  5. Click Update.

The post is now hidden from visitors. A draft is a post only you can see. You can publish it again later if you need to.

Screenshot: The post is now hidden from visitors. A draft is a post only you can see. You can publish
Tip: Take a backup before you set a plugin to Trash or delete a post. Draft is the safest choice, because you can bring the post back.

Check that it worked

Open your site in a private browser window. Search for the post. It should not appear after the date. If it still shows, clear any cache plugin or server cache.

Quick recap

  • Expiring a post hides it after a date.
  • A plugin can do it for you at the chosen time.
    Screenshot: A plugin can do it for you at the chosen time.
  • You can also set the post to Draft yourself using a reminder.
    Screenshot: You can also set the post to Draft yourself using a reminder.
    Screenshot: You can also set the post to Draft yourself using a reminder.
    Screenshot: You can also set the post to Draft yourself using a reminder.
  • Draft is safer than trash.
  • Clear your cache if the post still shows.
    Screenshot: Clear your cache if the post still shows.