get_post_meta( $appointment_id, ‘_appointment_guest_name’, TRUE );
please make sure that $appointment_id will be the post id and meta_key name should be proper with that id
you can check this in wp_postmeta table(check meta_key name is _appointment_guest_name or appointment_guest_name)