I have developed a website using html and php. To display blog details i have used wordpress. But im able to display only the content without any Image. Plz guide me how to write code to display the blog images in the front page.
code used to display recent blog details which is in index.php
<?php
define('WP_USE_THEMES', false);
require('blog/wp-blog-header.php');
?>
<!-- Blog Section-->
<section id="blog">
<?php
$number_of_posts = 3;
$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>";
}
?>
</section>
and output is