Skip to content

Instantly share code, notes, and snippets.

@jentanbernardus
Created August 4, 2013 19:27
Show Gist options
  • Save jentanbernardus/6151597 to your computer and use it in GitHub Desktop.
Save jentanbernardus/6151597 to your computer and use it in GitHub Desktop.
<?php
$author_posts = new WP_Query( array(
'posts_per_page' => 3,
'author' => get_the_author_meta( 'ID' )
) );
if ( $author_posts->have_posts() ) while ( $author_posts->have_posts() ) : $author_posts->the_post();
// loop
endwhile;
wp_reset_query();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment