Home › Forums › ACF PRO › Print user fields with values corresponding to that user › Reply To: Print user fields with values corresponding to that user
It should be working unless there is something wrong with the global
Can you try in the same place you are trying to get the state
global $authordata;
echo '<pre>'; print_r($authordata); echo '</pre>';
and does it show the current user or the post author user?
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.