Forums
-
- Forum
- Posts
-
- Installing BuddyPress
- 23,844
- How-to & Troubleshooting
- 129,858
- Creating & Extending
- 25,886
- Requests & Feedback
- 9,532
- Third Party Plugins
- 9,828
- Showcase
- 3,316
- Ideas
- 1,402
- Miscellaneous
- 9,177
-
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.