Support

Account

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.