| 开发者 | jonkern |
|---|---|
| 更新时间 | 2009年12月24日 06:16 |
| 捐献地址: | 去捐款 |
| PHP版本: | 2.7 及以上 |
| WordPress版本: | 2.9 |
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.
keep-it-fresh folder to the /wp-content/plugins/ directoryKeep 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)).
Great, I'm glad to hear feature requests. Just post a comment on the plugin's homepage.