PLEASE NOTE: This code has now evolved into my Custom Fields plugin. Please use this plugin instead of the code below, which is kept here out of historical interest only!
I’m currently working on a client’s WordPress site where there’s quite a few bits of custom functionality in my custom theme that rely on them entering values for posts or pages using WP’s custom fields.
Custom fields are really flexible. However, they’re not perfectly user-friendly. For instance, if no post or page is currently using a custom field that you’ve built functionality on, the user has to enter the name as well as the value of the field the first time it’s used. The drop-down of field names is dynamically gathered from the fields currently in use. Also, sometimes you want to make things easier for clients by having inline tips, and inputs that suit the field (e.g. a checkbox or select drop-down instead of just a plain text entry).
So, I set about piecing together a way to take over the Custom Fields meta box…

Welcome! I build websites - mostly based on the brilliant, free & open 
