Created
April 24, 2012 15:12
-
-
Save baczoni/2480462 to your computer and use it in GitHub Desktop.
Wordpress: Display user info
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
global $current_user; | |
get_currentuserinfo(); | |
$user_id = $current_user->ID; // You can set $user_id to any users, but this gets the current users ID. | |
$user_twitter = get_user_meta( $user_id, 'twitter', true); | |
echo $user_twitter; | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment