I created a custom post type with the register_post_type function, and now I want to add custom fields to it. These must be as user friendly and integraded in the GUI as possible.
I tried the custom field template but I dont really like it for end users. I prefer to add the new field and a new meta box with code.
I've written a tutorial on how to sort your custom post types by custom fields in the Wordpress admin area. I find that most times ordering a custom post type by the date posted isn't really useful.
Can find it here: http://www.eggplantstudios.ca/blog/wordpress-order-custom-post-type-by-custom-field-in-the-admin-area
I found this series of tutorials were very helpful:
And if you want a straight up code sample, this code is basically the template that I use for myself: (Using Scribu's optimal script loading technique)