Codex tools: Log in
Adds metadata for a particular post. The information used is POSTed from the "Custom Fields" form on the Edit Post Administration screen.
<?php add_meta( $post_ID ); ?>
/* Unless you developed a custom post form that uses the custom field widget, there is little reason to use this function */ add_meta( $post_ID );
Data used for the added metadata is taken from $_POST['metakeyselect'], $_POST['metakeyinput'], $_POST['metavalue']. Either the select or input fields are used for the meta key. If both are present, input field is used.
add_meta() is located in