Checking Out Twenty Ten

[Obligatory comment about my lack of posts and my intentions to be better in the future]

I’ve been following the development of WordPress 3.0 more closely than previous versions, and one of the features that has intrigued me the most is the new theme being developed. Twenty Ten is shaping up to be an elegant and innovative theme and I’m excited to see what it becomes before the final release of WordPress 3.0.

One of the nifty WordPress 3.0 features Twenty Ten takes advantage of is the new API for choosing a header and background image. In previous WordPress versions, theme authors would have to include complicated forms and form handlers if they wanted to allow their theme’s header and background to be customized. Now the theme simply has to indicate to WordPress that it supports custom headers and/or backgrounds and mention any images that are included in the theme. WordPress takes care of the rest, allowing administrators to choose between the available images or even upload an image of their own. Not only does Twenty Ten utilize this API, but it includes eight (so far) beautiful images to choose from.

The really nifty thing about having this standard API for custom headers/backgrounds is that it’s easy to customize. For example, I was able to write a plugin that randomly chooses between the available headers using a standard (to WP 3.0) filter. What’s neat is that this plugin should work with any theme that uses the new API and includes custom headers (though it’s hard to test since no other themes support currently do).

If you haven’t seen what Twenty Ten looks like, you can find my own instance here. I have the custom header plugin installed, so if you refresh the page the header image should change.

And that’s about it. If you want to check out my random header plugin, it has its own plugin page.