WP_Query(); example $args = array( ); $query = new WP_Query( $args ); // The Loop if ( $query->have_posts() ) { while ( $query->have_posts() ) { $query->the_post(); // content } } else { // no posts found content } wp_reset_postdata(); // Restore original Post Data