Support

Account

Home Forums General Issues User Profile Fields

Solving

User Profile Fields

  • I am really new to this… so new that I am not even sure how to ask the question

    Is it possible to associate an advanced custom field with a standard wordpress user profile field like username and put that into a field group?

    I have made a custom post type that is basically a user with a specific role and some added fields… I’m trying to figure out how (or if) I can pull all of the fields that I need into the “add new” page. I can get all of the custom fields I made show up but not any of the standard wordepress user fields like username..

    Do I just need to add everything I want to edit as a custom field?

  • If you want to just pull in existing values then you create an acf/prepare_field filter for each field that gets the associated value from user meta to use as $field['value']

    If you also want to save these values back to the user then you create an acf/save_post action that gets the fields and updates the user meta values.

    Specifics would depend on what user settings you are needing to use.

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.