Skip to content

Instantly share code, notes, and snippets.

@zacharydenton
Created January 24, 2011 18:43
Show Gist options
  • Save zacharydenton/793695 to your computer and use it in GitHub Desktop.
Save zacharydenton/793695 to your computer and use it in GitHub Desktop.
BuddyPress Album author template tags
<?php
function bp_album_get_author_userdata() {
global $pictures_template;
$author_userdata = get_userdata($pictures_template->picture->owner_id);
return $author_userdata;
}
function bp_album_get_the_author() {
$author_userdata = bp_album_get_author_userdata();
return $author_userdata->display_name;
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment