'post', 'posts_per_page' => 5, 'orderby' => 'date', 'order' => 'DESC' ); if ( is_home() ) { $query = new WP_Query( $args ); if ( $query->have_posts() ) { while ( $query->have_posts() ) { $query->the_post(); echo 'The WP_Query class is part of the WordPress core library and does not require an external package or library to be installed.' . get_the_title() . '
'; echo '' . get_the_excerpt() . '
'; } } wp_reset_postdata(); } ?>