Thank you for your answer but I think your solution does not help with my problem.
I expressed myself a bit awkwardly…sorry.
I have added a custom field to the file attachments (images) which can be filled out. (like the image alt attribute, description, title…)
The pictures are inserted in the text via the normal WYSIWYG editor. If the image has a description, I get it automatically (in the editor). Now I want the text of my custom field to be printed below the description (this should have an span around it or something).
I suspect I can only solve this via functions.php?
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!