Prekes Query
Queries all sub pages of Parent page specified
// WP_Query arguments $args = array ( 'post_parent' => '1885', 'post_type' => array( 'page' ), 'post_status' => array( 'publish' ), 'nopaging' => false, 'posts_per_page' => '10', 'order' => 'DESC', 'orderby' => 'date', ); // The Query $prekes = new WP_Query( $args ); // The Loop if ( $prekes->have_posts() ) { while ( $prekes->have_posts() ) { $prekes->the_post(); // do something } } else { // no posts found } // Restore original Post Data wp_reset_postdata();