Add an Expiration Date to WordPress Sticky Posts

photo credit: This Year's Love - cc
photo credit: This Year’s Lovecc

WordPress’ sticky posts feature was introduced six years ago in the 2.7 release. It was added to enable users to stick important posts to the front page so that they won’t disappear in a blog’s steady stream of chronologically ordered content.

By default, a sticky post is sticky indefinitely and requires you to manually uncheck the box under the post’s visibility settings in order to remove its stickiness. Expire Sticky Posts is a new ultra-simple plugin that allows you to set an expiration date on your sticky selections.

expire-sticky-postsThe plugin, created by Andy von Dohren, is a fork of the Simple Post Expiration plugin by Pippin Williamson. Expire Sticky Posts adds a date entry box to the publish panel for setting an expiration date if the post has been checked as sticky.

The plugin is perfect for automating the management of seasonal sticky posts and important time-sensitive notices. Also, some themes rely on sticky posts for setting the featured content on the homepage, requiring you to manually change them out. This plugin allows you to set up future dates for expiring sticky posts at the time that you publish them, so you don’t have to log in and change it later.

I tested the plugin and found that it works as advertised. The only thing I would add is the ability to set a specific time in addition to the date, as this may be important in some instances. If you find the Expire Sticky Posts plugin to be useful and have any further feedback, feel free to leave a note in the issues queue of the project’s GitHub repository.

Would you like to write for WP Tavern? We are always accepting guest posts from the community and are looking for new contributors. Get in touch with us and let's discuss your ideas.

10 Comments


  1. “The only thing I would add is the ability to set a specific time in addition to the date, as this may be important in some instances” << Totally Agree, this would be needed.

    Report


  2. Looks good. A nice improvement would be to use the same date selector as core uses.

    Report


  3. A few years ago I was searching for this type of plugin. Great that it has been made, so I can use it in the future when I need it :)

    Report


  4. WorePress development team, could you make this feature part of the core?

    Report


  5. I like the idea and all, and I guess it is handy. But really, do we need this? How hard is it when a sticky post is no longer useful to un-check the box?

    Report


    1. For the average user, that’s usually no problem, but it’s not always as simple as un-checking a box. There are a few reasons I believe this is useful.

      1) When you’re going to be away from your site but need to have a sticky post up for a limited amount of time.

      2) When you run a large site publishing many articles a day. Sometimes, you lose track of those posts in the admin (stickies don’t go to the top there).

      3) Uncommon uses of sticky posts on large sites that need time-sensitive stickies.

      Report

Comments are closed.