Hi all,
I have created a new field group which displays on user profiles and it contains a simple text field, but when I try to display the field in my page template using <?php the_field(‘custom_field’); ?>, nothing is displayed.
If I change the field group so that it displays on a Page instead of a User, the field content then shows up fine.
What am I doing wrong?
Thanks for your time.
You need to supply the $post_ID to get the value from, in this case you need to supply the user ID. https://www.advancedcustomfields.com/resources/how-to-get-values-from-a-user/