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.