Ever wanted a function to display your Flickr photos anywhere you want? This quick plugin will give you exactly that: a simple function that you can place anywhere in your template that you want to display a list of photos from a Flickr account.
1 2 3 4 5 6 7 8 9 10 11
To display the photo stream, simply place the function in one of your templates like this:
simple_flickr_display($user = 'yourUserID');
Or if you want to customize it a little more, you can change the default parameters:
simple_flickr_display($user = 'yourUserID', $size = 'm', $display = 'random', $count = 5);
You can easily find your user ID by going to your public photo stream and looking at the URL. For example, my public stream is at: http://www.flickr.com/photos/59968725@N03/, and my user ID is 59968725@N03.
I hope you find this useful, and keep your eyes open because I will be releasing a greatly enhanced version of this plugin that includes a widget sometime very soon.
Download the function as a complete plugin below.Download