Loving the new site, and 1.5 (although i have been using the 1.5Beta for some time)
I'm just wondering about manually adding new user Meta Fields/Info that has been taken from a New User Registration form?
As an example, in the Registration form I a Company Name: field, I have created the "User Meta" in the User Registration settings. I would now like to display this info.
Useing Justin Tadlock's "Adding and using custom user profile fields" (http://justintadlock.com/archives/2009/09/10/adding-and-using-custom-user-profile-fields) code
add_action( 'show_user_profile', 'my_show_extra_profile_fields' );
add_action( 'edit_user_profile', 'my_show_extra_profile_fields' );
function my_show_extra_profile_fields( $user ) { ?>
<h3>Extra profile information</h3>
<table class="form-table">
<tr>
<th><label for="twitter">Twitter</label></th>
<td>
<input type="text" name="twitter" id="twitter" value="<?php echo esc_attr( get_the_author_meta( 'twitter', $user->ID ) ); ?>" class="regular-text" /><br />
<span class="description">Please enter your Twitter username.</span>
</td>
</tr>
</table>
<?php }
I can add entry fields, but how would I populate the field with the registered users Meta?
Can anyone help? Have I been clear enough?
Thanks