function my_rss_img_include() { global $post; $user = get_userdata($post->post_author); $image_url = get_gravatar_url_for_user($user); echo '<media:content url="' . $image_url . '" width="80" height="80" medium="image" type="image/jpeg" />'; }
function get_gravatar_url_for_username($username) { $user = get_user_by("slug", $username); return get_gravatar_url_for_user($user); }