Display the 3 latest WordPress Posts on a Static Page Outside WordPress
Set this to 3: ‘posts_per_page’ => 3 Add your div in loop require($_SERVER[‘DOCUMENT_ROOT’] . ‘/blog/wp-load.php’); $args = array( // ‘cat’ => 3, // Only source posts from a specific category ‘posts_per_page’ => 3 // Specify how many posts you’d like to display ); $latest_posts = new WP_Query( $args ); if ( $latest_posts->have_posts() ) { while … Read more