Home › Forums › General Issues › WordPress Advanced Custom Fields not showing for new members in site › Reply To: WordPress Advanced Custom Fields not showing for new members in site
Hey, Elliot.
Thanks for the quick response. I should have added some more code to my discussion. The “Facebook All” does create WP users. It really does a great job in filling out user names, websites, bio… all that stuff. What it doesn’t do, however, is attach the custom fields created by ACF that are related to that user.
So, to get the user ID, I use this code in the header, so that I can acquire the “author ID” (this client is calling the “user” the “author”):
global $current_user;get_currentuserinfo();
$author_id = $current_user->ID;
It seems simple enough. I’m enclosing a screenshot of the profile page to explain further:
Which, if we were using WordPress for anything more than just a back end for the site, would be fine. The user experience, however, is a little bit different:
So, my conundrum appears to be with step 3 as follows:
1. Person logs in via Facebook for the first time
2. A user in WordPress is created
3. The custom fields need to be updated into the WP User’s profile.
4. Gameplay ensues
Any suggestions on how to achieve this, specifically?
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.