WordPress.org

Ready to get started?Download WordPress

Plugin Directory

Artiss Timed Content

Adds a shortcode and function allowing you to force the contents of a post or page to appear or expire after a specific date, day and/or time.

Function Call

If you wish to use this facility elsewhere in your theme - e.g. your sidebar - then you can do by calling a PHP function.

It uses the same parameters as above, each seperated by an ampersand.

For example...

timed_content(ondate=20120101&offdate=20121231);

This will return either TRUE or FALSE depending on whether the content should be displayed or not. So, a full example may be...

<?php if ( function_exists( 'timed_content' ) ) : ?>
<?php if ( timed_content( 'ondate=20120101&offdate=20121231' ) ) : ?>
Some content goes here
<?php endif; ?>
<?php endif; ?>

This will only display the content if it's any date during the year 2012.

Licence

This WordPress plugin is licensed under the GPLv2 (or later).

Support

All of my plugins are supported via my website.

Please feel free to visit the site for plugin updates and development news - either visit the site regularly or follow me on Twitter (@artiss_tech).

For problems, suggestions or enhancements for this plugin, there is a dedicated page and a forum. The dedicated page will also list any known issues and planned enhancements.

This plugin, and all support, is supplied for free, but donations are always welcome.

Acknowledgements

Thanks to Jeff Kereakoglow for the onday and offday suggestions, as well as pointing out the bug with the time.

Requires: 2.0 or higher
Compatible up to: 3.4.2
Last Updated: 2012-12-4
Downloads: 3,822

Ratings

5 stars
5 out of 5 stars

Support

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.

100,1,1
100,1,1 100,1,1 100,1,1
0,1,0
100,2,2