• Documentation
  • Support / Community
  • Products
    • Piklist Framework
    • Toolbox
    • Fields and Forms
    • WordPress Helpers
  • Log In
Piklist

Access your account, and post on the Support Forums

Retrieve Password | Register for account

Topic: Custom Fields in User Profile

Support Home » Topics » Piklist » Custom Fields in User Profile

Tagged: custom fields, new user creation page, user profile

  • This topic has 19 replies, 10 voices, and was last updated 4 years, 9 months ago by bhushanjawle.
Viewing 19 reply threads
  • Author
    Posts
    • November 11, 2012 at 5:46 pm #381
      Roland
      Member

      Hi,

      first: Piklist is a great tool!!

      Actually i work on a client project with an custom Partner-Management. I tried out different plugins like Members, WP-Members and so on, but nothing was the right plugin for the project.

      Piklist seems to be the right base for the whole project and for building all the future features we have planned…

      Two questions at the start:
      1: is it possible with piklist to add custom fields to the user profile? Because in the docs there are just tutorials for custom post types.

      2: All Partners, with the basic informations, will be registered by an admin. And we need unique Partner-Numbers within two groups: Partner and Customer. So the idea is, that a new partner gets a number like P123456 and a new customer a number like C123456. But we don’t want to give the numbers per hand. Is it possible to give this numbers automatic for new partners and new customers?
      All, partner and customer, are “Users” with different registration and different roles and capabilities… We need this to manage future features.

      Many thnx for your support in advanced,
      Roland

    • November 12, 2012 at 1:56 am #383
      Kevin
      Keymaster

      @roland-

      1. Yes, we plan on releasing the next version tomorrow which does include this and will help with #2.
      2. This is possible, however it’s not so much a piklist thing as it is hooking into the update of a user and setting this as meta based on who/what they are. If you need any help or pointers here let us know, we are happy to help.

      Thanks,

      Kevin

      Actions to check out:

      show_user_profile
      edit_user_profile
      personal_options_update
      edit_user_profile_update

    • November 12, 2012 at 5:10 pm #398
      Steve
      Keymaster

      v0.6.7 has been released with support for User fields… as well as Media and Taxonomies.

    • November 13, 2012 at 8:09 am #408
      Roland
      Member

      Many thanks for the really quick answer and the great support ;o)

      Checked the actions you told me and will be coming back to you for some help soon…

      cheers, Roland

    • November 14, 2012 at 12:30 am #411
      Roland
      Member

      Hi,

      worked with the new release 0.6.7 and added some custom fields to the user profile. Works fine, but there are two things:

      1: filled out the new fields with the user-login (editor) and cannot see the data when i’m logged in as administrator (have not set capabilities in the user-metabox). Also the fields look a little different when i’m logged in as administrator…

      2: I cannot get the data from the new fields to the frontend in my template… I tried it with get_user_meta but nothing appears on the site… Is the ‘scope’ post_meta or user_meta (from the field)?

      This code works: the Last Name from the user appears on the site.

      When i call this: nothing appears…

      Many thanks in advanced again for your help,
      Roland

    • November 14, 2012 at 12:32 am #412
      Roland
      Member

      Sorry, here’s my code:
      Works: echo get_user_meta( $user_id=2, ‘last_name’, $single );
      Don’t works: echo get_user_meta( $user_id=2, ‘acad_title’, $single );

    • November 14, 2012 at 12:42 am #415
      Roland
      Member

      Update:

      The code works! ;o) the thing was, that the data was not stored… Logged in again with the user-login and all the fields were empty… Any idea?

      Thanks, Roland

    • November 14, 2012 at 4:14 pm #417
      Steve
      Keymaster

      @Roland– You found a bug! The user meta is saving for the logged in user, not other ones. We’ll try to get a fix out quickly.

    • March 9, 2013 at 10:25 am #717
      sidhantmehta
      Member

      hi has there been any update on this issue? I wanted to something similar with user profiles. thanks!

    • March 13, 2013 at 10:38 am #719
      Steve
      Keymaster

      @sidhantmehta– This is “partially” fixed. You can modify another users data, but setting your own profile data seems to have issues.  We hope to have this fixed in the next version of Piklist.

    • May 23, 2013 at 6:18 pm #830
      harry
      Member

      just ran into this issue too..

    • August 13, 2013 at 8:27 am #984
      chrisben
      Member

      I don’t think it’s exactly the same issue, but using piklist 0.8 beta2 and wordpress 3.6 custom user fields do not appear (only workflow tab appears in the picklist_demos), even for users other than the current user.

    • August 13, 2013 at 3:38 pm #985
      Steve
      Keymaster

      @chrisben– Yup… definitely a bug. Thanks.

    • February 18, 2017 at 1:51 pm #7799
      hozefasmile
      Member

      Hi Steve,

      I have tried to add a new field for user profile. Created a folder in my theme piklist/parts/users/ and then created a file uniqueuserprofile.php and added this code

      <?php
      /*
      Title: Patient Information
      */
      
      piklist('field', array(
          'type' => 'text'
          ,'field' => 'user_address'
          ,'label' => 'Address'
          ,'attributes' => array(
            'class' => 'text'
          )
        ));
      ?>

      But no new field in showing in user profile page during creation of a new user. It though show when the user has already been created. But how can we show the custom field during a new user creation ?

    • April 30, 2017 at 10:23 pm #8039
      intrepidrealist
      Participant

      Hi!
      I’m running the latest version of Piklist (Version 0.9.9.12) and I’m running into the same issue that @Chrisben was running into. I don’t see my fields in the user profile, just the Piklist demo tabs. One of the tabs is “Profile” when I click that I see the profile but not my fields. I’m on WP 4.7.4, developing locally with Desktop Server.

      Attachments:
      You must be logged in to view attached files.
    • May 10, 2017 at 7:47 am #8222
      bhushanjawle
      Participant

      Hi @Steve, I tried same code as @hozefasmile as my actual code didn’t work.
      No user meta was saved in database.
      Is there any information missing in header comment I need to add ?
      Thanks

    • May 10, 2017 at 8:02 am #8223
      bhushanjawle
      Participant

      Issue created on github

    • May 10, 2017 at 8:31 am #8224
      bhushanjawle
      Participant

      @hozefasmile @Steve, I found a way around it, not sure if this the right way to do it though.
      I am able to save the above address field by adding 'scope'=>'user_meta' in above field.

      @Steve, can you please confirm if this is the right way of using it ?

    • May 10, 2017 at 2:49 pm #8225
      Jason
      Keymaster

      @bhushanjawle since you made the issue on Github, let’s please keep the discussion there so we’re not working in multiple places. 🙂

    • May 11, 2017 at 12:38 am #8227
      bhushanjawle
      Participant

      Agree @Jason, completely with you on this.
      That is why I added link here 🙂
      Will update further on github. Wanted to update users on this thread who may not have gone to Github on what worked for me as a workaround.
      Thanks !

  • Author
    Posts
Viewing 19 reply threads
  • You must be logged in to reply to this topic.
Log In

Log in / Register

Register for an Account

Stay up-to-date with Piklist

About

  • Philosophy
  • Privacy Policy
  • Terms of Service
  • Contact Us
  • Register for an account

Resources

  • Community Forums
  • Documentation
  • Tutorials
  • Get involved

Follow Piklist

  • Like us on Facebook
  • Follow us on Twitter
  • Connect on Google +
  • Watch on YouTube

Rate Piklist


If you love Piklist leave us a 5 Star review on WordPress.org.

News

  • Piklist v0.9.9.8 is now available

    September 30, 2019

    In October of 2015, we released v0.9.9 of Piklist. Your help in testing lead to seven(7) m ...

  • Piklist is now on HackerOne

    September 30, 2019

    We built Piklist from the ground up with security as our top priority. While we’ve t ...

  • Read all News
  • Powered by Piklist & WordPress © 2009 – 2022 Piklist LLC.
    This website or its third-party tools use cookies, which are necessary to its functioning and required to achieve the purposes illustrated in the cookie policy. By closing this banner, scrolling this page, clicking a link or continuing to browse otherwise, you agree to the use of cookies. Find out more.