<?php

define('WP_USE_THEMES', false);

require('blog/wp-blog-header.php');

?>

 

<?php

 

$number_of_posts = 5;

$args = array( 'numberposts' => $number_of_posts );

$recent_posts = wp_get_recent_posts( $args );

foreach( $recent_posts as $recent_post ){

echo "<span>".$recent_post['post_date']."</span> <br>";

echo "<h3>".$recent_post['post_title']."</h3>";

echo  "<p>".$recent_post['post_content']."</p><br><br>";

 

}

 

?>