Get new post meta data when (custom) post is saved

Use add_action( 'save_post', 'shortend', 999);

and put this in your function as first.

if ( 'project' != $_POST['post_type'] )
    return $post_id;

If this doesn’t work then you should echo $_POST; and see if kaart_verkoop is part of the array.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)