• Resolved Bukajec

    (@bukajec)


    I added a field for a mobile phone number to the registration, that works fine. I wanted to add it to the profile page as well, so I added this code to the profile-page.php:

    <tr>
    <th><label for="mobile_number"><?php _e( 'Mobile Number', 'theme-my-login' ) ?></label></th>
    <td><input type="text" name="mobile_number" id="mobile_number" value="<?php echo esc_attr( $profileuser->mobile_number ) ?>" class="regular-text" /></td>
    </tr>

    It adds the field, but doesn’t echo the password previously selected.

    Another problem is, that modifying the profile page, doesn’t modify the profile page of other users that I can see as an admin, so I can’t even see the custom fields. How can I fix this?

    Thanks a lot

    http://ww.wp.xz.cn/extend/plugins/theme-my-login/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Jeff Farthing

    (@jfarthing84)

    I don’t understand the first question. But, there are hooks to actually add fields to the wp-admin profile/user edit page. Look at /wp-admin/user-edit.php.

    Thread Starter Bukajec

    (@bukajec)

    What I meant is that when I edit my profile, the fields have the previous input in them(username, email…), however the newly created ‘mobile number’ field remains empty.

    Thread Starter Bukajec

    (@bukajec)

    Where is the input from newly created fields in the registration form actually saved? Couldn’t find it anywhere in the database.

    Thread Starter Bukajec

    (@bukajec)

    Ok, I figured it out, thanks a lot. Another thing I wanted to ask, is there a way how to put user-edit into my child theme? So it doesn’t get deleted when updating wordpress?

    Plugin Author Jeff Farthing

    (@jfarthing84)

    It should work. The plugin looks in child theme directory first.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘[Plugin: Theme My Login] Modifying the Profile Page’ is closed to new replies.