a) You should not be adding new columns to the posts table. You should use custom fields instead, using the *_post_meta() functions. Or you should create your own table. Modifying core table is just as bad as modifying core code: it makes it impossible to upgrade easily for that blog later.
b) There are action hooks all over the editing code for you to hook into. simple_edit_form, edit_form_advanced, edit_page_form. You’ll also need to use hooks to receive and save the incoming form data: publish_post, edit_post, save_post, wp_insert_post, delete_post, etc.
Thanks for the first part, new table it is.
As for the second part, I’ll look into it. Are the editing hooks the same as for post creation, or are they just for editing?
And can you tell me (or link me to) more information regarding post_meta?
There’s not a lot of good documentation on those, though the functions are fairly obvious and easy to use.
Look for these functions in the source code:
add_post_meta
delete_post_meta
get_post_meta
update_post_meta
And examine them. They are fairly obvious. Basically you can add key->value pairs to any post and be able to pull it back later.
As for the editing hooks, I’m not entirely certain. You may just want to search through the source and find them to see where they are and what they do.
The best documentation on WordPress is WordPress itself. Whenever I want to know, I just go read the source code.
I just found a section on the post create/edit pages where you can add custom fields
May still need those hooks to make the section more informative (eg: specifying a required specific field).
a) You should not be adding new columns to the posts table. You should use custom fields instead, using the *_post_meta() functions. Or you should create your own table. Modifying core table is just as bad as modifying core code: it makes it impossible to upgrade easily for that blog later.
b) There are action hooks all over the editing code for you to hook into. simple_edit_form, edit_form_advanced, edit_page_form. You’ll also need to use hooks to receive and save the incoming form data: publish_post, edit_post, save_post, wp_insert_post, delete_post, etc.
It would help if the documentation explained this better.