WordPress.org

Ready to get started?Download WordPress

Forums

Import Users from CSV
[resolved] How Do you add additional User Meta fields (8 posts)

  1. thedeeper
    Member
    Posted 2 years ago #

    Hi, Thank you for the awesome plugin! Great job!

    I want to add additional User Meta Fields, so I can import a CSV that has additional User Meta fields.

    1. How do you do that?
    2. Where/What File do you add the code to?

    Thank you sooo much!

    http://wordpress.org/extend/plugins/import-users-from-csv/

  2. thedeeper
    Member
    Posted 2 years ago #

    I am not sure if it's called meta fields, but it's additional columns of user information.

    Some of my columns are different than your example.
    I use "Full Name" instead of "First name" & "Last Name", I also have 'Newsletter", "Address", etc...

    Thank you in adavance!

  3. Ulrich Sossou
    Member
    Plugin Author

    Posted 2 years ago #

    You can use the User Meta plugin to add the fields. http://wordpress.org/extend/plugins/user-meta/

  4. thedeeper
    Member
    Posted 2 years ago #

    Ulrich, Thank you for the link.

    I installed User Meta Plugin and add all the meta fields that matches my existing CSV file's column names.

    My CSV column names are:
    Submitted, Full_Name, phone, user_email, How-Did-You-Hear, Message, Newsletter, Submitted_From

    My User Meta Plugin's Meta names are (same as above):
    Submitted, Full_Name, phone, user_email, How-Did-You-Hear, Message, Newsletter, Submitted_From

    Then I use your plugin to upload the CSV file, it gives me the "No user was successfully imported" error msg. Am I missing something?

    Thank you in advance!

  5. Ulrich Sossou
    Member
    Plugin Author

    Posted 2 years ago #

    You need to add the user_login column.

    I would also recommand using lowercase letters and underscore only for the meta_key.
    E.g.: how_did_you_hear instead of How-Did-You-Hear.

  6. thedeeper
    Member
    Posted 2 years ago #

    Thank you. it worked!
    Thank you for the awesome job!

  7. Ulrich Sossou
    Member
    Plugin Author

    Posted 2 years ago #

    You are welcome

  8. thisjustin
    Member
    Posted 2 years ago #

    A small piece of advice for others: the free version of the User Meta plugin has very little functionality. If you were like me, and looking to create editable metadata fields for users in the backend, and then use the awesome importer that Ulrich has written, his plugin + Register Plus Redux is a great combination.

    To be clear, the User Meta plugin does everything it says, it will create those metadata fields in the database, which you can then use as fields for importing users, but, as far as I can tell (please correct me if I am wrong), you are not able to view or edit them from the admin without the User Meta pro version.

    Also, Register Plus Redux was recently taken down due to a security hole found in its code, so User Meta Pro might be the only way to go for now.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic