Image field is returning ID instead of URL
-
Hi EkoJR,
I’m using Advanced Post List to display a list of company logos. The logos are inserted into each page/post by using the image field in Advance Custom Fields. The image field is named “featured_partner_logo” in ACF. Here’s the code I’m using in APL:
<a href="[post_permalink]"><img src="[post_meta name="featured_partner_logo"]" alt="[post_title]"></a>
But instead of returning the image URL, I’m just getting the image ID (for example “136”). I’ve tried several things in ACF, but the only way I can get the image URL to display properly is to change the image field in ACF to a URL field and then paste the URL directly into the field. It works, but it’s not super user friendly.
Have you encountered a problem like this before? And is there a work-around?
Thanks in advance ??
- The topic ‘Image field is returning ID instead of URL’ is closed to new replies.