Created
November 18, 2014 16:15
-
-
Save mattradford/9e187e468186d9ccd190 to your computer and use it in GitHub Desktop.
ACF current user pho
This file contains hidden or 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; | |
$userID = $current_user->ID; | |
$imageArray = get_field('your_picture', 'user_' . $userID); | |
$imageThumbURL = $imageArray['sizes']['thumbnail']; | |
?> | |
<img src="<?php echo $imageThumbURL;?>"> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment