Skip to content

Instantly share code, notes, and snippets.

@micahwave
Created March 7, 2012 22:20
Show Gist options
  • Select an option

  • Save micahwave/1996643 to your computer and use it in GitHub Desktop.

Select an option

Save micahwave/1996643 to your computer and use it in GitHub Desktop.
newsfeed posts by sean
$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