Created
November 19, 2011 20:56
-
-
Save pinscript/1379350 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 | |
| class FuturePostsWidget extends WP_Widget { | |
| function __construct() { | |
| } | |
| function widget($args, $instance) { | |
| $query = new WP_Query('post_status=future&order=DESC&showposts=10'); | |
| printf("%d future posts", count($query)); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment