Posts Query Showing “The Loop”
General Posts query from which multiple, dynamic queries will be created.
// WP_Query arguments $args = array( 'post_type' => array( 'post' ), 'post_status' => array( 'any' ), 'nopaging' => false, 'posts_per_page' => '10', 'order' => 'ASC', 'orderby' => 'title', ); // The Query $d3b_post_query = new WP_Query( $args ); // The Loop if ( $d3b_post_query->have_posts() ) { while ( $d3b_post_query->have_posts() ) { $d3b_post_query->the_post(); // do something } } else { // no posts found } // Restore original Post Data wp_reset_postdata();