Home › Forums › General Issues › Echo author image? › Reply To: Echo author image?
Yeah, I have Image URL selected.
If you want to echo the image url on a regular page or whatever you can do that by simply doing this:
<?php echo get_field('name_of_field'); ?>
But if you use this instead:
<?php echo get_post_meta($post->ID, "name_of_field", true); ?>
… You don’t get the image url, then you get the image id.
It seems like you can’t obtain the image url by calling “get_the_author_meta”. Is there another way? Something like “get_the_author_fields”
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!
🚀 This week’s session of ACF Chat Fridays dips into the preliminary results of our first ever user survey. Don’t miss it! https://t.co/3UtvQbDwNm pic.twitter.com/kMwhaJTkZc— Advanced Custom Fields (@wp_acf) May 9, 2023
© 2023 Advanced Custom Fields.