CLOSE ×
Get in Touch
Thank you for your interest! Please fill out the form below, and I will do my best to get back to you.

Thank you! Your submission has been received!

Oops! Something went wrong while submitting the form.

WordPress Widgets and Flickr RESTful APIs

Garth Henson
|
Uncategorized
|
15 Apr 2010

I have done some significant WordPress modifications for friends in the past, be it basic theme manipulations or custom hacking of plugins, but I decided that I wanted to write my own widget to help tie my Flickr account into my blog. I did some searching on the currently hosted WordPress plugin site, and while there were several that tapped the Flickr API, they all seemed too clunky or not quite flexible enough for what I had in mind. Simply listing the most recent thumbnails from my photostream couldn’t be that hard, right? As it turns out, no, it wasn’t.

If you look in the sidebar of my blog, you’ll see a section titled “Recent Photos” that is pulling a live search feed from my Flickr account. Tying this into a WordPress widget that displays the images in a predefined format came quite quickly and easily, and in the course of a couple hours, I found myself looking at my completed widget thinking that surely there must be more to it. All in all, the project went off pretty seamlessly. The new widget format since WP2.8 is amazing, and it becomes simple and incredibly quick to put together some rather robust ties to other APIs.

For those who care to test the widget for yourselves, please feel free to download it here.

To set it up the widget, just follow these steps:

  1. Copy the guahanFlickr.php file into your /wp-content/plugins directory in your WordPress install
  2. Activate the plugin from the “Plugins” menu on your admin panel.
  3. Set the Flickr username and display options from the “Widgets” menu on your admin panel.

That’s it! I’m open to comments and suggestions. Please let me know if you have any difficulty getting it set up.

Garth Henson
Garth is as a lead engineer at The Walt Disney Company, specializing in JavaScript applications.

Recent Blog Posts

Let's Work Together
Contact Me