// Get the last 3 posts. 3 ); $myposts = get_posts( $args ); foreach( $myposts as $post ) : setup_postdata($post); ?>