Support

Account

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:

    What the WordPress profile looks like

    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:

    The actual user experience.

    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?