PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

User Meta

  1. hexdigital
    Member

    Hi

    I have a sign up form that is supposed to store a few pieces of user meta... How do I go about actually storing these in the database?

    One of these bits of data is the user's formal title 'Mr / Mrs / Dr / Miss / Ms' and then echo that out when a user posts... So it would be 'Mr Doe' for example. I know how to echo a last name but am struggling with the formal title setting that I've introduced. I've set up the form so I've added a dropdown and then selected the item 'formal title' in the user registration 'user meta' section and labelled it 'formal title'... What do I do next?

    It seems the form submits and I have a form entry notification of these field entries, but they're nowhere to be seen in the database?

    I'm a bit confused. What is the purpose of the 'User meta' section in User registration form settings if it doesn't actually store this data?

    Thanks for your time in advance.

    Posted 11 years ago on Sunday May 5, 2013 | Permalink
  2. The data is stored in the wp_usermeta table. Have you already checked there to see if they are being stored already?

    If you want to display the collected data, you can do something like this:
    http://justintadlock.com/archives/2009/09/10/adding-and-using-custom-user-profile-fields

    They are not displayed by WordPress normally as part of the user profile. They should indeed be stored though.

    Posted 11 years ago on Monday May 6, 2013 | Permalink
  3. hexdigital
    Member

    I checked the database but there doesn't seem to be a meta-key or meta-value for those items in there?

    thanks

    Posted 11 years ago on Monday May 6, 2013 | Permalink
  4. hexdigital
    Member

    any ideas anyone?

    thanks

    Posted 11 years ago on Thursday May 9, 2013 | Permalink
  5. I had the same problem with the one drop down field on the form. All other form data is in the wp_usermeta table, but the drop down field that has 6 choices does not go into wp_usermeta table.
    I have successfully added 4 users with the paypal, and user registration add ons, but this one field is not going into the mysql db. the checked choices do show on the entries section and on the form data sent to admin. Am I missing something?

    Posted 11 years ago on Thursday May 9, 2013 | Permalink
  6. hexdigital
    Member

    Any movement on this at all?

    Cheers

    Posted 11 years ago on Monday May 13, 2013 | Permalink
  7. ok, i see the user meta for a checkbox field in the db.
    Each checkbox is a separate record.
    the meta_key is the value

    Posted 11 years ago on Monday May 13, 2013 | Permalink
  8. hexdigital
    Member

    Ah found it on another page!

    Thanks

    Posted 11 years ago on Monday May 13, 2013 | Permalink

This topic has been resolved and has been closed to new replies.