$attachment_id did indeed work! Thanks a lot!
Thanks again!
Yes the parent post does have a filled field. Return value for this field is URL.
Thanks mediawerk,
it now does show the div but only links to the current url insead of the field on the parent page. Have you got any idea what’s wrong? Must be something small…
Sven