Default Posts Query/Loop
// WP_Query arguments $args = array( 'post_type' => array( 'post' ), 'post_status' => array( 'published' ), 'nopaging' => true, 'posts_per_page' => '12', 'ignore_sticky_posts' => false, ); // The Query $wp_query = new WP_Query( $args ); // The Loop if ( $wp_query->have_posts() ) { while ( $wp_query->have_posts() ) { $wp_query->the_post(); // do something } } else { // no posts found } // Restore original Post Data wp_reset_postdata();