[Plugin: Advanced Custom Fields] Image URL is NOT returned
-
Hi,
I am using a custom field to upload an image in a post. I am then echo’ing this image in the php template using the file URL as the src
For example
<img width="150" height="150" alt="" src="<?php echo get_post_meta($post->ID, 'employee_profile_photo_1', true) ?>" title="profile-photo">However, it does not work! In the post when adding the image it add’s fine and a small thumb is generated in the post admin to show it was added. I guess I am missing a text field to read this URL..
I have also turned on the field option in ACF when adding a an image file to return the image URL.
Any help on how to get the URL of the uploaded file?
The topic ‘[Plugin: Advanced Custom Fields] Image URL is NOT returned’ is closed to new replies.