Re: Custom fields
You can use a hook to add an input field. Your code would look something like this:
add_action('post_form', 'addmyinputfield');
function addmyinputfield() {
echo '<input type="text" name="mine" id="mine" />';
}
You would need another hook to then get the value when it’s been posted. I’m not sure about this one, but I think the hook would be pre_post
. Again you use it in the same way as above: add_action('hook_name', 'function_name');
There’s a list of hooks here, http://bbpulp.org/wiki/API/actions if that wasn’t the one you wanted. Maybe post_form_pre_post
?