Articles Posted in 2014

‘2014’,
‘post_type’ => ‘post’,
‘post_status’ => ‘publish’,
‘posts_per_page’ => -1,
‘ignore_sticky_posts’=> 1,
‘no_paging’ => True,
);
$my_query = null;
$my_query = new WP_Query($args);
if( $my_query->have_posts() ) {
while ($my_query->have_posts()) : $my_query->the_post(); ?>

Published on ” . get_the_date() . ” by ” . get_the_author() . “
” . get_the_excerpt() . “

“;
endwhile;
}
wp_reset_query(); // Restore global post data stomped by the_post().
?>

Leave a Reply