Include WordPress Posts in External Page
I needed to add the most recent blog posts to an external site and threw together this php script to do it. It’s pretty simple and easy to implement so I thought I would share. I don’t plan on supporting the script, so please don’t ask me how to add all sorts of other functionality. You’re welcome to take the script and customize it to your hearts content. Just grab the file, rename it to a .php extension, configure it with your database name, username, password and path and you’re set. Yes, you could pull in the RSS feed easily enough, but I thought I might eventually want to include the blogroll links or other data that wouldn’t be available in the feed so I did it this way. Everything is pretty well commented to make it easy to update.
Download the free script 537 times












The posts are missing formatting, it’s just one block of text. Is there a way to fix this?