Home › Forums › General Issues › [Help Please ] Can't get fields or their values › Reply To: [Help Please ] Can't get fields or their values
Is the user you’ve saved data for user 1?
This code:
get_field( 'test_field', 'user_1' );
Gets the data for user ID 1. If you wanted user ID 9 you’d need to do:
get_field( 'test_field', 'user_9' );
For example.
If you’re not seeing the data even in the wp_usermeta
table something else may be going on as well.
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.