Replace comment avatars and links at the same time

I am trying to replace WordPress comment author data: 1) Avatar (uploaded image instead of Gravatar) 2) Author link (link to author page as only members can comment) I have found a great solution to this from this question, and have implemented the following code: if ( ! function_exists( ‘t5_comment_uri_to_author_archive’ ) ) { add_filter( ‘get_comment_author_url’, … Read more

Replace Gravatar with img URL for avatars

I have many, many WordPress authors. For each, I have used the custom wp_usermeta profile field “photo_url” to store URLs for different remotely-hosted avatar images. I am currently displaying these image avatars on author.php by echoing the strings through the img HTML tag. But I’d like to more closely integrate them with WordPress, by making … Read more

Changing default Buddypress avatar affects all site avatars (because gravatar)

I’ve been looking for a way to change the default Buddypress avatar for members, and have managed it, partially just using the simple Buddypress codex info here. BUT The codex info doesn’t quite do the trick. It seems that Gravatar overrides it, so the only way the codex code works is if I first disable … Read more

get the avatar url instead of an html img tag when using get_avatar?

i want to get the user avatar URL to use it as background URL style for a div. i tried to use the following but it does not return anything when i view the code it appears like that. background: url() i used this function. function get_avatar_url($get_avatar){ preg_match(“/src=”https://wordpress.stackexchange.com/questions/63198/(.*?)”/i”, $get_avatar, $matches); return $matches[1]; } any help … Read more