• Home
  • Systems
  • Networking
  • WordPress
  • Web
  • Geekery

Analysis and Review

How to Add and Remove WordPress Profile Fields

April 28, 2010 by Kurt Turner

Ever want to add profile fields in your wordpress profile page, or how about removing a profile field from your wordpress profile. Here you’ll see how to:

  1. Add a profile field to your author page aka profile page
  2. Remove a profile field from your wordpress profile page
  3. Call the custom profile information  somewhere within your blog post

[php]<?php
function my_new_contactmethods( $contactmethods ) {
// Remove Yahoo IM
unset($contactmethods[‘yim’]);
// Add Twitter
$contactmethods[‘twitter’] = ‘Twitter’;
//add Facebook
$contactmethods[‘facebook’] = ‘Facebook URL’;
return $contactmethods;
}
add_filter(‘user_contactmethods’,’my_new_contactmethods’,10,1);
?></code>

And then to call is within you post or pages just edit your template files and add:

<code><?php echo the_author_meta(‘facebook’);?>[/php]

Filed Under: Wordpress Tagged With: add, profile fields, remove, Wordpress

Comments

  1. martinbeasnunez says

    June 17, 2010 at 6:44 pm

    With regard to what you say to add the funcion’my_new_contactmethods’ I do not paid off, add the line of code in ‘registration.php’ maybe I’m doing something wrong, can you help me?
    : /

    greats

  2. Kurt says

    June 20, 2010 at 9:30 pm

    can you give me some thing out of your error log? this should work just fine sir. without errors I cant help you

Latest and Greatest

Apache vs Nginx for WordPress

Certbot Lets Encrypt And WordPress MU Multi-Site

How To Find and Replace Multiple File in MS Word

How To Get Stretch Res on Windows 10 AMD Radeon For Game Play

This is the ASUS Chromebox we've been running for 2 years as our "brain" for our home grown digital display kiosk.

DIY Digital Signage Bulletin Board or Kiosk

© Copyright Analysis And Review · All Rights Reserved ·