Results 1 to 2 of 2

Thread: Adding fields to user profile

  1. #1
    Thread Starter
    rtibbs4's Avatar
    Join Date
    Aug 2009
    Location
    United States
    Posts
    358
    Thanks
    9
    Thanked 4 Times in 4 Posts

    Adding fields to user profile

    Adding fields to the user profile. (most importantly a phone number)

    appearance/editor/theme_profile.php

    I copied this snippet.

    Code:
    <table class="form-table">
    
            <tr>
                <th><label for="paypal"><?php _e('PayPal Email','cp')?></label></th>
    
                <td>
                    <input type="text" name="paypal_email" id="paypal_email" value="<?php echo esc_attr(get_the_author_meta('paypal_email', $user->ID)); ?>" class="regular-text" />
    
                    <span class="description"><?php _e('Please enter your PayPal email address.','cp')?></span>
                </td>
            </tr>
    
        </table>
    and pasted with changes

    Code:
    <table class="form-table">
    
            <tr>
                <th><label for="phone"><?php _e('Phone Number','cp')?></label></th>
    
                <td>
                    <input type="text" name="phone_number" id="phone_number" value="<?php echo esc_attr(get_the_author_meta('phone_number', $user->ID)); ?>" class="regular-text" />
    
                                </td>
            </tr>
    
        </table>
    Obviously you can make any field you wish by doing this ( I think). One thing I can't figure out is to "hook" it into the form with "priority". Currently the phone field is last in the order and it should be up higher near email, website etc..

    Anyone??

  2. #2
    Senior Member netpotion's Avatar
    Join Date
    Feb 2010
    Location
    United States
    Posts
    246
    Thanks
    30
    Thanked 13 Times in 10 Posts

    Re: Adding fields to user profile

    You must be an AppThemes customer and logged in to view this response. Join today!
    My Currently Live Sites
    ~ http://www.netpotion.com - Free Flash Gamez
    ~ http://www.picdepict.com - Free Image Hosting

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)