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' ) ) ;

?>

 

Leave a Reply

Close Menu
%d bloggers like this: