该插件尚未通过WordPress的最新3个主要版本进行测试。 当与较新版本的WordPress一起使用时,可能不再受到维护或支持,并且可能会存在兼容性问题。

Keep it Fresh

描述

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.

安装

  1. Upload the keep-it-fresh folder to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Setup Keep it Fresh as you please via the Keep it Fresh options page under Settings in the WordPress admin area

常见问题

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_posts` still returns old posts. What do I do?

The get_posts function will suppress the filters that Keep it Fresh uses to hide old posts by default. To avoid this behavior, pass an array to get_posts with the key suppress_filters set 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.

评价

此插件暂无评价。

贡献者及开发者

「Keep it Fresh」是开源软件。 以下人员对此插件做出了贡献。

贡献者

帮助将「Keep it Fresh」翻译成简体中文。

对开发感兴趣吗?

您可以浏览代码,查看SVN仓库,或通过RSS订阅开发日志

更新日志

1.0

  • Initial Release