Keep it Fresh
Keep it Fresh
Current Stable Version: 1.0
Current Development Version: None
Requires WP Version: 2.7
Tested up to WP Version: 3.0-alpha
Keep it Fresh will stop WordPress from showing posts older than a set number of days or a specific date. It is configurable via the WordPress administration area. Keep it Fresh doesn’t remove old posts, nor does it muck with their post_status; rather, Keep it Fresh uses the posts_where WordPress filter to filter out posts older than the given date or amount of days whenever WordPress requests posts outside of the admin area.
Installation
- Upload the
keepitfreshfolder to the/wp-content/plugins/directory - Activate the plugin through the ‘Plugins’ menu in WordPress
- Setup Keep it Fresh as you please via the Keep it Fresh options page under Settings in the WordPress admin area
Frequently Asked Questions
- How does Keep it Fresh hide my old events?
- Keep it Fresh adds a date filter on the posts query each time WordPress requests posts to display (except when in the admin area).
get_postsstill returns old posts. What do I do?- The
get_postsfunction will suppress the filters that Keep it Fresh uses to hide old posts by default. To avoid this behavior, pass an array toget_postswith the keysuppress_filtersset to false. For example:get_posts(array('suppress_filters'=>false)). - I love Keep it Fresh, but I’d like it to do <blank>.
- Great, I’m glad to hear feature requests. Just post a comment on the plugin’s homepage.
Changelog
1.0
- Initial release
5 Responses
yes, keep it fresh! i want the plug-in to do the work on the frontpage, but it shouldn’t hide the posts in the archives section. cheerio.
That’s not really what Keep it Fresh is meant to do. You should just change the get_posts call on your homepage to remove the posts you don’t want.
Hi,
I’d like to use something like this on an old blog that I’m using for a new thing.
For example, my dating advice blog is now going to offer dating education, coaching – Kiss Me, I’m a Geek.
I want the main posts shown to be new content from this year, but I don’t want the site to show a 404 error, should someone use an address for an old post – i.e. pre 2009.
Will this plugin fit the parameters? Showing new posts, but not causing 404 errors on old direct url posts?
Thanks!
Meg
Thank you for this awesome plugin! I do have a question though. How could I specify a time (eg 03 am) so that the plugin would archive all posts made within the past day on a specific time. Thank you in advance!
Sorry, that functionality isn’t available.