This is my first attempt at a WordPress plugin. I implemented it on The News Tribune‘s homepage several months ago and there haven’t been any disasters, so I’m considering it a success.
This plugin takes post data from your WordPress blog and creates an XML feed of that data. I suppose it could have several uses, but it is optimized to feed data to Flash photo galleries with info from the Title and Excerpt fields as well as each post’s permalink.
Download the plugin: Photo Gallery XML Export v1.0.0
I’ve also added the ability to include up to five custom fields (good for thumbnails) and the option of limiting to just one category.
Here’s a screenshot of the options page:

How you might use this in the real world:
If you have a photo blog or a blog that usually includes at least one photo per post, you could use exported XML data from your blog to feed a Flash content rotator that you would use to promote that blog on another page of your site.
Or, if you have a special feature on your blog — say, “Recipe of the Week” — that includes a photo, you could assign that special feature a category (like “recipeoftheweek”) and use exported XML data from just that category to feed a Flash content rotator to promote that special content.
Here’s an example of my blog’s content as XML generated from this plugin:

And here’s a live example of a Flash content rotator that’s pulling data from XML generated by this plugin:
A few suggestions for Flash content rotators:
• Flash Image Rotator using XML Playlist
Some notes:
1) The XML declaration is hard-coded to be: <?xml version=”1.0″ encoding=”UTF-8″ ?> … I don’t have any plans to change that unless I get requests for other declarations.
2) You can name most XML elements however you see fit, but right now the parent element is hard-coded to “images” and each blog post parent element is hard-coded to “pic.” I’m hoping to make that customizable in the future.
3) If your excerpt isn’t populated, it will pull from your blog post. Not entirely ideal, but that’s how WordPress excerpts work by default.





