Archive for the ‘Uncategorized’ Category

Default templates for custom post types in WordPress

Tuesday, August 10th, 2010

One of the shortcomings of Custom Post Types in WordPress is that there’s no way to easily set a different custom template from the standard single.php. If it’s a custom post type, it’s got custom information, and I want to put it in a custom template!

So I threw together a plugin to handle this. With this plugin installed and activated, it checks your template directory for posttype.php then t_posttype.php. If neither exists, then the standard WP template rules take effect.

For example, if your custom post type is ‘books’, it’s going to check your template directory for ‘books.php’. If it finds it, it will use that as the template for your ‘books’ posts. If not, it will check for ‘t_books.php’, and use that as the template for your ‘books’ posts. If it finds neither, the standard WP logic kicks into place, looking to see if you’ve defined a template for the post, and, if not, using single.php.

Download here

Importing Basecamp Tasks into iCal

Friday, November 6th, 2009

basecamp-logo-for-fluidI’ve been back and forth a thousand times on Basecamp– I love it and I hate it, and have tried every alternative, but I just keep coming back.  So instead of switching again, I’ve decided I should just start fixing the things that bug me, and I’ve started with the fact that I can’t get a feed of my tasks into iCal.  Since ICS feeds are read-only, there’s no way to be able to check off basecamp tasks in iCal, but I’ve started using Minco to track my time (great app, by the way), and it pulls in a list of items to track from your iCal to do list.  I’m sure you see where this is going– if I can push my Basecamp tasks into iCal, then Minco can see them.  Maybe you have another reason for wanting your tasks in iCal, but this was mine.  Anyway, thanks to Monte Ohrt’s Basecamp PHP API library, I was able to throw together an API tool to pull my tasks and push them out into an ICS feed in just an hour!  I’ve made this tool available so you can easily drop it into iCal and away you go.  Or, if you’d rather dig into it yourself, you can download my code from: http://tr.im/EjnN
(more…)

Remember The Milk -> Email Update

Monday, April 6th, 2009

Hey guys– I’ve decided that instead of just posting some convoluted RTM email scripts, I’m going to put together an RTM API PHP Class (wow, that’s a lot of acronyms), then, once this is done, I’ll be building an RTM->Email gateway for everyone to use.

Huzzahs all around?

Powered by Olark