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-08 10:43:37pm