Solution- avatar's not showing
-
Hey, just downloaded this plugin, and was running into the same issue other users have reported, with the upload working, but the default gravatar still being displayed.
Checked the database, and the usermeta was being updated correctly, so wrote the following hack, which is working for me. I assume there must be a plugin or something overriding the filter you’re using, however I don’t have time to look into it right now.
`<?php
$av = get_user_meta(get_current_user_id(), ‘basic_user_avatar’, true);
if ( $av ) {
echo ‘<img src =”‘ . $av[‘full’] . ‘”>’;
}
else {
echo get_avatar( get_current_user_id() );
}?>`
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Solution- avatar's not showing’ is closed to new replies.