Home › Forums › General Issues › Retrieving image url through relationship › Reply To: Retrieving image url through relationship
I personally do not see how this is even getting the correct image ID
$image = $bank[0]->bank_logo;
ACF does not get the post attachments and add them to the post array when getting the value of a relationship field. If this is being populated it is not being done by ACF. If it does contain the correct attachment ID then you need to look into how that value is being populated. That is where you’ll find the cause of it being an ID rather than a url.
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!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.