Adding recent Wordpress post, with featured image and excerpts to HTML site


Staff member
I have researched this question on several forums and have found the most relevant answer here: <a href="">Add &quot;Recent Posts&quot; from a wordpress blog to a html static page</a>.

What I am looking for is an expansion upon this answer that will allow me to include a featured image and post_excerpt. I have searched Google and this forum, to no avail. Any help that you can provide would be greatly appreciated.

My goal is to include an RSS-type feed on my HTML site drawn from my blog, which resides in a sub-directory of my site.

The aforementioned PHP snippet works perfect for displaying and linking to the most recent posts, however, I would like to display both a featured post image and a post excerpt within the feed.