Support

Account

Home Forums General Issues Custom field in registration form + show it in user profile page Reply To: Custom field in registration form + show it in user profile page

  • Hi @dedalos-01

    <?php
    if ( is_user_logged_in() ) :
    
    	$user_id = get_current_user_id();
    	$file= get_field( 'file', "user_".$user_id );
    	if($file): ?>
    		<a href="<?php echo $file['url']; ?>"><?php echo $file['filename']; ?></a>	
    	<?php endif;
    
    endif;