So my solution so far is this. NOTE that it uses jquery to move stuff around. And while it works the custom profile field is always empty, Even though the content is saved ??
functions.php
//modify about yourself
function add_custom_user_profile_fields( $user ) {
?>
<table id="custom_user_field_table" class="form-table">
<tr id="custom_user_field_row">
<th>
<label for="specs"><?php _e('Anl?gsspecifikationer', 'your_textdomain'); ?></label>
</th>
<td>
<textarea rows="5" name="specs" id="specs" value="<?php echo esc_attr( get_the_author_meta( 'specs', $user->ID ) ); ?>" class="regular-text" ></textarea><br />
<span class="description"><?php _e('Share your sound system specs here', 'your_textdomain'); ?></span>
</td>
</tr>
</table>
<?php
}
add_action( 'show_user_profile', 'add_custom_user_profile_fields' );
add_action( 'edit_user_profile', 'add_custom_user_profile_fields' );
function move_shit() {
$screen = get_current_screen();
if ( $screen->id != "profile" && $screen->id != "user-edit" )
return;
?>
<script type="text/javascript">
jQuery(document).ready(function($) {
field = $('#custom_user_field_row').remove();
field.insertBefore('#password');
});
</script>
<?php
}
add_action( 'admin_head', 'move_shit' );
add_action('edit_user_profile', 'add_extra_profile_fields');
add_action('show_user_profile', 'add_extra_profile_fields');
//////////
function fb_save_custom_user_profile_fields( $user_id ) {
if ( !current_user_can( 'edit_user', $user_id ) )
return FALSE;
update_usermeta( $user_id, 'specs', $_POST['specs'] );
}
add_action( 'show_user_profile', 'fb_add_custom_user_profile_fields' );
add_action( 'edit_user_profile', 'fb_add_custom_user_profile_fields' );
add_action( 'personal_options_update', 'fb_save_custom_user_profile_fields' );
add_action( 'edit_user_profile_update', 'fb_save_custom_user_profile_fields' );
////////////
then in the theme add (ie. author.php)
<?php $profileStuff = (get_query_var('author_name')) ? get_user_by('slug', get_query_var('author_name')) : get_userdata(get_query_var('author')); ?>
<?php echo $profileStuff->specs; ?>