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
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!
The most recent ACF Chat Friday featured a live demo of how to register CPTs directly in the plugin, one of our most requested features. Check out the summary below for a replay of the demo, and don’t forget to register for the next session! https://t.co/k2KQ3WWBAz— Advanced Custom Fields (@wp_acf) March 9, 2023
© 2023 Advanced Custom Fields.