Home › Forums › Front-end Issues › Display pictures in the right place › Reply To: Display pictures in the right place
acf_form() is only used to present the form.
You need to get the image from the user field and show it in the location where you want it displayed. See getting values from other places https://www.advancedcustomfields.com/resources/get_field/
$post_id = 'user_'.$current_user->ID;
<?php if( get_field('cover_profile', $post_id) ): ?>
<img src="<?php the_field('cover_profile', $post_id); ?>" />
<?php endif; ?>
make sure you are returning the right type of value. The above code means that you have the image field set to return the URL or the image.
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.