• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer

Nile Flores Media

Helping You Rock Out Your Website Like A Rockstar

  • Home
  • About
  • Blog
  • Portfolio
  • Hire Me
  • Resources
  • Contact
  • Blogging
  • WordPress
  • Social Media
  • SEO
  • Web Design
  • News
  • Podcast
You are here: Home » WordPress » Add More Social Network Handles To Your WordPress Author Profile

Add More Social Network Handles To Your WordPress Author Profile

By Nile Flores 9 Comments


The author’s page by default only allows you to put just enough information up. For those who utilize their authors.php page, they can add more things like your Twitter and Facebook profile to their author profile and not have to even alter the core of their site. You can even add more than that.

This is done by adding and a simple function and filter to your theme’s functions.php file.

function my_new_contactmethods( $contactmethods ) {
// Add Twitter
$contactmethods['twitter'] = 'Twitter';
//add Facebook
$contactmethods['facebook'] = 'Facebook';
//add LinkedIn
$contactmethods['linkedin'] = 'LinkedIn';
return $contactmethods;
}
add_filter(‘user_contactmethods’,'my_new_contactmethods’,10,1);

If you want to add more, you can do that. For example, if I wanted to add in YouTube, I would put the following code in before the return $contactmethods line and after the last social network code listed. Example code:

//add Youtube
$contactmethods['youtube'] = 'Youtube';

In order to call these into your author profile page, you can put the following code. In the case of the code above for Twitter, LinkedIn, and Facebook:

Twitter:

<a href="http://twitter.com/<?php the_author_meta('twitter'); ?>">Twitter</a>

Facebook:

<a href="http://facebook.com/<?php the_author_meta('facebook'); ?>">Facebook</a>

LinkedIn:

<a href="http://linkedin.com/in/<?php the_author_meta('linkedin'); ?>">LinkedIn</a>

As a note, even though you can add as many social network accounts to your WordPress author profile, you should probably use the ones that are the most important and most relevant to your website’s visitors.

Sounds easy?

By the way, Joost de Valk is the one to give credit for the ability to add more to the user contact fields.


Filed Under: WordPress Tagged With: wordpress, wordpress author profile, wordpress tricks, wordpress tutorial

About Nile Flores

Nile is a 43-year old female from the greater St. Louis (Southern Illinois side) area. Nile is a mother of 1 son. She is also a web designer and developer, a graphic designer, and a public speaker, who exclusively designs and develops using WordPress. She also blogs at GoDaddy's Blog, Verpex Hosting's blog and her very personal sites, Pixelled and Nail Polish Happy.




Related posts:

How to Change The WordPress Default Avatar Changing Your Username In WordPress Inserting Adsense Between Posts in WordPress How To Make A Tag Cloud Page In WordPress How to Display A User Welcome Message In WordPress

Reader Interactions

Comments

  1. sam says

    November 24, 2011 at 12:36 am

    Nice Post,

    No doubt in that social media sites are play very big role in each and every blog post/site and you mentioned very well how we can make our blog post/site more powerful with the help of these tools.

    Reply
  2. David Cornick says

    November 24, 2011 at 1:15 am

    Nile, This is brilliant, I was totally unaware this could be done.As a “newbie” I appreciate any help I can get

    Reply
  3. sai says

    November 25, 2011 at 8:38 am

    wow really a great wordpress trick to add more custom fields.keep sharing more tricks for wordpress 🙂

    Reply
  4. Karen says

    November 26, 2011 at 2:40 pm

    This is a great option, though I have added Facebook, I am having issues with Google+, added it to the user page, but after adding the Google+ number and clicking update profile, the number disappears and I just can’t seem to get it to work!

    Reply
    • sai says

      January 31, 2012 at 2:19 am

      i’m too agree with you mate 🙂

      Reply
  5. Mike The Lawyer says

    December 26, 2011 at 12:43 am

    Looks great – when I pasted it into the functions.php the fields showed. When I entered text into the profile area and tried to update the user, I received a “page not found” error afterward. I’m using WP 3.3 and wonder if that might have something to do with it.

    Reply
  6. AnujSharma says

    March 8, 2012 at 10:40 am

    This is cool but can it work with other theme or can you get tricks to use for other themes?

    I will be expecting your reply…

    Reply
    • Nile says

      March 9, 2012 at 3:06 am

      Yes, this works with other themes. You just put the code in your functions.php file of your theme.

      Reply
  7. Matt says

    December 17, 2012 at 12:50 am

    Nice, I’ll try these codes in my site. Hopefully there will be no problem.

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Primary Sidebar

Follow Me On:

  • Facebook
  • Instagram
  • LinkedIn
  • Twitter
  • YouTube

Get The Latest WordPress & Blogging Tips

Sign up for my newsletter, and also get my free ebook on 10 Reasons Why Your Website Isn't Converting, and How to Fix it!




Try to be More Positive on Social Media

Note: You can click on image and view the video in a larger lightbox window.

Footer

The Blog

Lots of free information, tutorials, and more to help you bring your best foot forward with your website.

  • Blogging
  • WordPress
  • Social Media
  • SEO
  • Web Design

Get The Latest WordPress & Blogging Tips

Sign up for my newsletter, and also get my free ebook on 10 Reasons Why Your Website Isn't Converting, and How to Fix it!

Copyright © 2025 · · WordPress