31 July 2005
RSS feeds and updated Photos page
Yes, yes, yes!
Ever since I have this blog I was wondering how I could move my old static HTML pages into a dynamic page maintained through WordPress. The documentation made it sound quite easy, but there were a few obstacles to get over. One was the theme I am using - I had to create a completely new template that would not show any items that are usually inserted for posts, like the comments area, the page title, etc. Secondly I wanted the photo page to be automatically updated with new content from my Photo Gallery. I figured I could make use of the RSS feed of the Gallery, but didn't quite know how.
After a whole day of sitting here and trying things out I finally managed to get the photos from my Gallery RSS feed to show up on my new Photos page and also on the blog home page (this page).
First I had to find a tool that could transform the XML code that comes in from the Gallery RSS feed into HTML or JavaScript and that I could run from our server. I found a free PHP script which sounded perfect (http://www.rss2html.com/), but again, this didn't work on the first attempt as I got an error message regarding the curl function (whatever that is…). Finally I found an older version of the PHP code in the Support area of the site and guess what, it works with our webserver setup.
Once I had that figured out I only had to customise the SSI template files to display the RSS items with and BINGO!







