VeriteCo/Timeline-Wordpress-Plugin — pull request #25 by andrewsfreeman (2012-08-22 05:16:01+00:00)
Title: Custom Post Type and Metabox

Hello Verite/Zach Wise,

I love the Timeline.js plugin, and thought that it would be helpful to have a complete WordPress backend, avoiding Google Docs entirely (and also saving your servers a bit of load).

The modifications I've made set up a custom post type called Timeline which uses a metabox (created through WP Alchemy) for all the values associated with an entry. A datepicker is used for the dates and WP's media uploader is available for the media URL. There is an option to set a particular entry as the intro slide.

I also set up a transient to cache the Timeline when it is generated, for performance reasons. When the custom post type is saved it is updated and set to last for a month.

I hope that you can find this contribution helpful and a bit more accessible for WordPress users. If you find any problems with it please let me know.

I recommend looking at the diff rather than my commits - I'm still getting used to the idea of atomic, progressive Git commits.

Thank you.