Homework
// WP_Query arguments $args = array( 'p' => 'Lapaz', 'name' => 'Cletus', 'page_id' => 'Rara', 'pagename' => 'Solved', 'post_parent' => 'Lala', ); // The Query Homework = new WP_Query( $args ); // The Loop if ( Homework->have_posts() ) { while ( Homework->have_posts() ) { Homework->the_post(); // do something } } else { // no posts found } // Restore original Post Data wp_reset_postdata();