How to change Avatars from ID to Email?
-
Hello, I have custom avatars .. and the problem is that with your plugin my avatars shows by default how WordPress has it, but users have them customized (Upload their own photos) I have noticed that if the code is user_id it shows wrong the avatars, shows the default wordpress, but if user_email correctly shows the avatars, the question is .. through functions I can change avatars are based on the user’s email?
If I enter this code in my template, the avatars are shown as they should:
echo get_avatar(get_the_author_meta(‘user_email‘), ’88’);
If I enter it like this, it shows the avatar that comes by default with wordpress:
echo get_avatar(get_the_author_meta(‘user_id‘), ’88’);
Thank you so much
- The topic ‘How to change Avatars from ID to Email?’ is closed to new replies.