Custom Profile Field for

I think you want something like this: <textarea type=”text” name=”twitter” id=”twitter” class=”regular-text”><?php echo esc_attr( get_the_author_meta( ‘twitter’, $user->ID ) ); ?></textarea> Note, the input field has a value attribute while the textarea has it’s content between <textarea> and </textarea>

Fields in User Profile Page

For a quick solution put this code in functions.php of your theme: add_action( ‘show_user_profile’, ‘show_extra_profile_fields’, 10 ); add_action( ‘edit_user_profile’, ‘show_extra_profile_fields’, 10 ); function show_extra_profile_fields( $user ) { ?> <input type=”text” name=”twitter” value=”<?php echo esc_attr( get_the_author_meta( ‘twitter’, $user->ID ) ); ?>” /> <?php } Or you could do it with a plugin: http://www.cozmoslabs.com/wordpress-profile-builder/

Best way to change profile page

What about just targeting with CSS? tr.user-nickname-wrap { display: none; } Of course the fields will still be in the source but the CSS targeting will be faster than JS. You can load your WP Admin CSS this way: function wse_183286_profile_admin_css() { $screen_id = isset( get_current_screen()->id ) ? get_current_screen()->id : null; if ( ‘profile’ === … Read more

How to Get User Profile Info on a Category Page

Add a metabox to the category edit screen with a user dropdown. Save the user ID as meta data. In your category template use the meta user ID as argument for get_user_by(): // First find the ID, put it into $user_id then: $author = get_user_by( ‘id’, $user_id ); See this post for an example how … Read more

Make user profile field required

What I did create form with fields and validate them: added this line of code to add the user knowledge that it is required fields <span class=”description”><?php _e(‘(required)’); ?></span> added this to form like this: add_action( ‘show_user_profile’, ‘extra_user_profile_fields’ ); add_action( ‘edit_user_profile’, ‘extra_user_profile_fields’ ); function extra_user_profile_fields( $user ) { ?> <table class=”form-table”> <tr> <th><label for=”address”><?php _e(“address”,’shabatkeeper’); … Read more