I released a really simple little plugin. All it does is allow you to mark content that should only display until a certain date/time, then hides it after that date/time. So it doesn’t do much, but what it does is pretty useful.
The download an more information for the Expiring Content Shortcode plugin is with with my other plugins on the Crowd Favorite website.
This post is part of the project: Expiring Content Shortcode. View the project timeline for more context on this post.
[…] This post was mentioned on Twitter by blognews, Olof, Olof, WordPress Butler, WordPress News and others. WordPress News said: Expiring Content Shortcode http://bit.ly/bUGNpc […]
Releasing a new plugin for WordPress E-Commerce next week, would love to pack this into it, as it does a little chunk of what I’m trying to accomplish – I’m from portand, OR, gonna be in Denver this week though, care to talk shop over coffee?
Hi Alex,
This is a great plugin. It would probably be a more useful plugin if you allowed an option to 301 redirect to another page when expired. The URL to 301 redirect could be chosen by a field below the post. Just an idea.
How about the converse — a shortcode that hides content until a certain time, then displays it?
Maybe something like:
[showafter time=”2010-11-17 08:00″]The site is now live![/showafter]
Seems like a pretty natural extension. 🙂
Gotta love simple plugins that provide little bits of usefulness.
There are several existing plugins that do expiration of entire posts, this merely does the expiration of content within a post.
Dougal – yep, exceedingly trivial to add (copy/paste the shortcode and change > to <=), but I had no need for the feature.
I’m confused.
The content is deleted but not the post? So is the page “blank”?
Do you have an example?
The content within the shortcode is not shown after it expires. I recommend reading the README.
[…] the past?You have the issue of expiring content! And if you’re running WordPress, you can use this plugin here to help with that. Very useful and very simple.Wish I had thought of it.[HT: WPCandy]Related […]
This sounds awesome! Could be very useful for my site. We can’t say enough positive things about the WP HelpCenter! Got a project going as we speak.
Continued success!
[…] Lo de WordPress no tiene nombre, cada dÃÂa me sorprende más y más. Acabo de ver en aNieto2k (y Alex King) lo que llaman un código corto (shortcode en inglés) en forma de plugin para insertar contenido […]
[…] have the issue of expiring content! And if you’re running WordPress, you can use this plugin here to help with that. Very useful and very […]