Created
March 7, 2012 22:20
-
-
Save micahwave/1996643 to your computer and use it in GitHub Desktop.
newsfeed posts by sean
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
| $q = new WP_Query( | |
| array( | |
| 'posts_per_page' => -1, | |
| 'post__not_in' => array( 1368 ), // skipping http://newsfeed.time.com/2010/05/17/taste-testing-the-worlds-most-alcoholic-beer/ | |
| 'post_status' => 'publish', | |
| 'post_type' => 'post', | |
| 'author' => 14074318, | |
| ) | |
| ) | |
| $links = array(); | |
| if( $q->have_posts() ) { | |
| while( $q->have_posts() ) : $q->the_post(); | |
| $links[] = get_permalink(); | |
| endwhile; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment