Created
March 10, 2012 18:12
-
-
Save kachi/2012346 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| function future_posts_in_feed($query) { | |
| if ($query->is_feed) { | |
| $query->set('post_status','publish,future'); | |
| } | |
| return $query; | |
| } | |
| add_filter('pre_get_posts','future_posts_in_feed'); | |
| ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment