Display WordPress Post on Any Page

January 3rd, 2014 by
<?php $loop = new WP_Query( array( 'post', 'posts_per_page' => 4, order => 'DESC' ) );
while ( $loop->have_posts() ) : $loop->the_post();

the_title();
the_post_thumbnail('');
the_excerpt();

endwhile;
?>

Post a Comment

You must be logged in to post a comment.

Cached at: 2024-12-22 05:02:50am