I use the following to add Phone number,linked id etc Under the “Contact Info” in user profile. Now I have to add a filed under the “About the user”. How can i do that?
function my_new_contactmethods( $contactmethods ) {
$contactmethods['designation'] = 'Designation';
$contactmethods['linked_in'] = 'Linked In';
$contactmethods['phone'] = 'Phone Number';
return $contactmethods;
}
add_filter('user_contactmethods','my_new_contactmethods',10,1);
UPDATE
The above code adds 3 fields to under the section “Contact Info ” in the user profile
I don’t want to create a new heading called “About the user” and give the required fields. A section with “About the user ” is already there in the profile which includes biographical info and password changing option. I want to add a new field there along with those two
Add following code in theme’s functions.php file.
I have sorted out using the codes above with combination of another code moving phone field. I would like to share these codes with anyone who need them:
The above codes will display phone field on user profile page, save it and move it above password. Its not my codes; I combined codes on this site.
Enjoy it!