Hi @herrfischer
You can add the title attribute with the functions parameters:
//wp_get_attachment_image( $attachment_id, $size, $icon, $attr );
<?php
$title = get_sub_field('titel');
$image = get_sub_field('bild');
$size = 'full'; // (thumbnail, medium, large, full or custom size)
$attr = array(
'title' => esc_attr( $attachment->post_title ),
);
if( $image ) {
echo wp_get_attachment_image( $attachment_id, $size, 0, $attr );
}
?>