How to get buddypress Avatar in WordPress

So with the same canvas setup in the last post:

<?php
require( '/home/your/absolute/path/wp-load.php' );
$current_user = wp_get_current_user();
$cID = $current_user->ID;

echo bp_core_fetch_avatar ( array( 'item_id' => $cID, 'type' => 'full' ) ) ;

?>

 

You may also like...

Leave a Reply