// Save Fields
add_action('publish_post', 'save_details');
add_action('save_post', 'save_details');
add_action('edit_post', 'save_details');
function save_details(){
if ( defined('DOING_AUTOSAVE') && DOING_AUTOSAVE )
return $post_id;
global $post;
update_post_meta($post->ID, "geocoding", $_POST[ "cp_street"] . " " .$_POST["cp_zipcode"] . " " . $_POST["cp_city"]);
}
There are currently 1 users browsing this thread. (0 members and 1 guests)