Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: AHP Sitewide Recent Posts and BuddyPress repeat gravatars


Romik84
Member

@romik84

nah, I have found a solution:

change the line which I mentioned above to this:

$userid = $wpdb->get_var(“SELECT post_author FROM $blogPostsTable”);

and then find line starting $grav_img = and change it to:

$grav_img = get_avatar($userid, ’80’, ”);

and your gravatars will be working fine.

Skip to toolbar