Friday, 27 September 2013

How To Add Extra Fields To WordPress User Profile Page

Important: All scripts hosted on don't work anymore because Google has blocked that SVN repository.

Yesterday I post an article about removing some extra fields (AIM, Yahoo IM, and Jabber) from WordPress' user profile page area. It's time to dig even more deeper into this trick. It's time for us to learn about adding some extra fields to user profile page.

The code below will show you how to add additional Twitter and Facebook fields, but you can use it to add any other field that you like. Add following php code to your theme's functions.php file (from theme editor):

function my_new_contactmethods( $contactmethods ) {
// Add Twitter
$contactmethods['twitter'] = 'Twitter username (withour @';
//add Facebook
$contactmethods['facebook'] = 'Facebook';
return $contactmethods;

That's it.
Important: Check our new website for WordPress tutorials, plugins and more.
Powered by Blogger.