Home › Forums › Front-end Issues › Image only showing ID on front end with users › Reply To: Image only showing ID on front end with users
So none of those solutions worked but I did find something that did. I used the following code and was able to get the image to finally show up.
<?php
$publisher_photo = get_the_author_meta('user_profile_image');
$image_src = wp_get_attachment_image_src($publisher_photo);
echo '<img class="avatar" src="'. $image_src[0] .'" />';
?>
Thank you for your help with this.
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.