How to output the image title?

If the used theme does not offer the possibility to display the image title, this circumstance can be changed with a little PHP. In the case described here, this only works if the ID of the image or attachment is queried beforehand.

$attachment_title = get_the_title($attach_id)
Without cookies
This website does not use cookies or tracking. More information can be found in the privacy policy.