Support

Account

Home Forums Front-end Issues can only fetch 1 custom friend form user

Helping

can only fetch 1 custom friend form user

  • hello, I have 2 custom fields for users on my site. Both have a default value.

    I can only get the data for 1.

    $theuser = $current_user->id;
    
    $author_credits = get_field('required_credits', 'user_'. $theuser );	
    $reporting_period = get_field('reporting_period', 'user_'. $theuser );
    
    echo $author_credits;
    echo $reporting_period;

    Only author credit will give me a value, reporting period will not. I have deleted it, renamed it, created whole new field group for it, nothing works. I did create the author credits first. These 2 fields are identical in very possible way except variable name

  • This reply has been marked as private.
Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘can only fetch 1 custom friend form user’ is closed to new replies.