To show the avatar in the posts I use this code:
<?php
$user_id = get_current_user_id(); // Get the user ID
$size_avatar = 37; // Set the avatar size
echo get_avatar( $user_id, $size_avatar, $default_avatar ); // This prints the <img /> tag with correct avatar image url
?>
And it works very well .. but in the reviews it shows the default avatar marked in wordpress .. it is strange
I would give the access data but work in LocalHost, and the capture only shows upload image, so I leave the code of the area .. if it can be useful … if this is difficult to solve, I will disable the avatars of the plugin, it’s not so nice but it’s not a big problem ??
<div class="wpuf-fields">
<div id="wpuf-avatar-125-upload-container" style="position: relative;"><div class="wpuf-file-warning"></div>
<div class="wpuf-attachment-upload-filelist" data-type="file" data-required="no">
<a href="#">Seleccionar imagen</a>
<ul class="wpuf-attachment-list thumbnails">
<li><img src="https://localhost/plantilla10/wp-content/uploads/2018/05/governor-poker-3-avatar.jpg" alt="" height="96" width="96" /><br><a href="#">Eliminar</a></li> </ul>
</div>
<div id="html5_1cerdgc8m24l4qq1u52nmsvsc3_container" class="moxie-shim moxie-shim-html5" style="position: absolute; top: 0px; left: 225px; width: 149px; height: 28px; overflow: hidden; z-index: 0;"><input id="html5_1cerdgc8m24l4qq1u52nmsvsc3" type="file" style="font-size: 999px; opacity: 0; position: absolute; top: 0px; left: 0px; width: 100%; height: 100%;" multiple="" accept="image/jpeg,image/gif,image/png,image/bmp"></div></div><!-- .container -->
</div>
-
This reply was modified 6 years, 6 months ago by
Jose Castaneda. Reason: fixed broken code