Posting WordPress blog posts on a “regular” webpage

The “root” of my webpage is just a standard static website.  It’s treated me well for a long time, but I’ve been wanting to show the most recent blog posts on it.  I know I could have redirected the main index page to the WordPress portion of my site, but didn’t want post dates on the homepage posts (in case I go an a bit of an unofficial sabbatical).  The WordPress Coxex has a great page on Integrating WordPress with Your Website, but it was more that I wanted to get into.  I’ve been burnt by putting “the loop” into custom coded pages before and didn’t relish having to re-code them every time a new version of WordPress came out.

I found an extremely easy way to do this via JavaScript with Feed2JS.  Just fill in a simple web form with info about your website, generate some JavaScript and paste it into your html.  I had the titles of my 4 most recent posts up in less than a minute.

If you’re interested in posting the content of a world-class blogger, you’ll have to look elsewhere, but if you want to see what the code for my site looks like, here it is:

Post a Comment

Your email is never shared. Required fields are marked *

*
*