Wrong avatar being displayed
I coded two widgets, one to list the most active blogs on the website home, and another to show up a profile on blogs.
The weird thing is that using the same method for both widgets, they display different avatars. In my blog home I got the right avatar, but on blog profiles sidebar widget I get a gravatar “smiling square” generated one, not the one uploaded via Buddypress.
The method (exactly the same in both widgets) is something like:
$user = get_blog_owner ($blog_id) // function to not get site admin users
echo get avatar ($user->ID, 96); // bp_core_fetch_avatar(‘item_id=’.$user->ID) does not work, either
Hope someone can help me on this.
Thanks in advance.
You must be logged in to reply to this topic.