Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Author’s photo on index page


Burt Adsit
Participant

@burtadsit

Howdy, looking around in the bp code I found this for ya.

bp_post_author_avatar(). It’s in the bp-core-templatetags.php file. Looks like it is only useful inside of a wordpress post loop.

function bp_post_author_avatar() {

global $post;

if ( function_exists(‘bp_core_get_avatar’) ) {

echo apply_filters( ‘bp_post_author_avatar’, bp_core_get_avatar( $post->post_author, 1 ) );

} else if ( function_exists(‘get_avatar’) ) {

get_avatar();

}

}

I don’t see any references to *bp* using this function at all for it’s own purposes. Looks like it was built special for you. :)

This what you’re looking for?

Skip to toolbar