I’m trying to use a True / False field configured for all users. The field appears correctly on the user profile page however when I use the front-end function get_field or the_field I get no return. In addition to the true / false also tried text field and checkbox and nothing was returned too. It would be a bug? I’m using get_field(‘field_name’, ‘user_id’). Using ACF 4.3.4 and WP 3.8.1
Hi @arthurse
You are passing a string ‘user_id’ as the $post_id parameter. This should NOT be a string, but instead be the ACTUAL user’s ID.
http://www.advancedcustomfields.com/resources/how-to/how-to-get-values-from-a-user/
Thanks
E
Hi @elliot
I was making a mess, using username_ID format, but the correct is the word “user” plus the ID.
Now I see that it is written in the documentation string “user” + id.
Thanks