Add custom fields user profile
  • MarkusMarkus September 2011

    Hi!

    How/where can I add a custom field - in my case gender - to the user profile data? Where are non standard values like occupation stored at the moment? Thanks!

  • eminlieminli November 2011

    Values are stored in the usermeta in the sql. You need to update two of these followin:

    1.there is a userinfo part in profilefunctions.php in the plugin folder:

    find an appropriate place to put these lines.

    <?php } ?>
    <?php if($profiledata->qya_gender!=""){
    ?>
    Gender:
    <?php echo $profiledata->qya_gender;?>

    2. and add the follwing line in the extrafunctions.php also in the plugin folder:
    find update_usermeta lines and add the followin:

    update_usermeta($userdata->ID,"qya_gender",$_POST["interest"]);

    It worked for me.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In Apply for Membership