Here’s a very quick example of a typical WordPress Loop:


wp_reset_query(); 
$args = array(
      'post_type'  => 'post', 
      'posts_per_page' => 3
       ); 
       query_posts($args);
	if ( have_posts() ) : while ( have_posts() ) : the_post();
        // do title, thumbnail etc...
endwhile; endif;

Leave a Reply

Comments