Support

Account

Home Forums Front-end Issues acf_form on user profile Reply To: acf_form on user profile

  • Fixed it myself. For future purposes, here is the fix:

    	<?php $options = array(
    	    'post_id' => 'user_'.$current_user->ID,
    	    'field_groups' => array(77),
    	    'form' => true, 
    	    'return' => add_query_arg( 'updated', 'true', get_permalink() ), 
    	    'html_before_fields' => '',
    	    'html_after_fields' => '',
    	    'submit_value' => 'Update' 
    	);
    	acf_form( $options );
    	?>

    Declared the post_id as current user ID taken directly from wordpress