Pezholio

09 Oct, 2009

Adventures in WordPress plugin building

Posted by: Pez In: Web Development

I love WordPress (hell, I use it for my blog don’t I?) and for a while I’ve been looking for an excuse to add to the community and build a plugin.

Whilst working on a new community blog for the North Lichfield Initiative I found that excuse.

The guy I was training to update the blog wanted an easy way to show Flickr slideshows on posts and pages and didn’t want to mess around with code. I first tried using Flickr Slideshow, which generates code to embed Flickr slideshows into websites, but found that the visual editor strips away the iframe code when you publish the post.

I searched and searched through the WordPress plugins, but couldn’t find anything that did what I wanted to do quickly and easily – so I rolled up my sleeves and got my hands dirty!

The result is Flickr Flash Slideshow – all you need to do is put the link the to user, set or group you want a slideshow of between [ flickr][ /flickr] tags (without the spaces) like so:

[ flickr]url[ /flickr]

You can also add the width or height of the slideshow like so:

[ flickr]url,width,height[ /flickr]

If the width and height is left out, then the plugin defaults to 300px x 300px

Check out an example here:

I was amazed by how quickly I could put it together and it’s further cemented my belief that WordPress is one of the best, if not best open source projects ever – a lot of projects could learn from its ease and extensibility.

Anyways, if you want the plugin, please Download it here and let me know if you have any problems! I’m sure it’ll come in handy for a lot of community based sites who’s users may not have enough technical knowledge to edit raw HTML.

Update: I’ve finally got access to the WordPress SVN repository, so you should be able to install it directly from your admin section – just search for ‘Flickr Flash Slideshow’

8 Responses to "Adventures in WordPress plugin building"

1 | Andrew Beeken

October 9th, 2009 at 11:52 am

Avatar

Woohoo! Been after a decent Flickr Slideshow like this for a while! Top marks Stu; will be downloading and implementing…

2 | Philip John

October 9th, 2009 at 11:55 am

Avatar

Cooooool. I use a very similar (but temperamental) plugin on The Lichfield Blog called Flickr Slideshow Wrapper. If you can make it work as easily as this Google Maps plugin, that would be even better!

3 | Philip John

October 9th, 2009 at 11:56 am

Avatar

Oh and great to see the NLI blog up and running with a nice theme and everything!

4 | Pez

October 9th, 2009 at 12:02 pm

Avatar

@ Phil – Ah! I assumed you just edited the code! You might want to shift to this one instead ;) It seems to work OK, the only limitation is that groups with custom names don’t work (yet). Also I’d like to add tags and searches too!

Glad you like the NLI blog too – It’s still a work in progress, but it’s getting there!

@ Andy – Awesome, glad you like it, lemme know if there’s any issues with it :)

5 | JackP

October 9th, 2009 at 12:32 pm

Avatar

Nice. Now I just need to find a way of working that into a project or two…

6 | Adrian Short

October 9th, 2009 at 4:32 pm

Avatar

Great idea! Get it up in the WP plugin directory and people will be able to install it directly from within the WP admin section without having to download and upload.

7 | Pez

October 9th, 2009 at 6:27 pm

Avatar

All done now! :) I was just waiting for WordPress to allow me access to the SVN repository. It’s all up in the plugins directory for all to see!

http://wordpress.org/extend/plugins/flickr-flash-slideshow/

8 | Paul Jenkins

November 25th, 2009 at 8:42 am

Avatar

Thanks Pez – i had been relunctantly using Flickr slideshow for a while now; i’m going to add this to my blog asap – cheers!

Comment Form

Where I’m at