Jump to content

Code works in detail but not list page


Thomas Venugopal

Recommended Posts

I'm using the popular WP User Avatar which utilizes core functionality for Gravatar and allows you to upload your own avatars: https://wordpress.org/plugins/wp-user-avatar/#installation

In the documentation they write:

Quote

Outside the loop you can use: <?php $user = get_user_by('slug', $author_name); echo get_avatar($user->ID, 96); ?>

and

Quote

In the loop you may use: <?php echo get_wp_user_avatar(get_the_author_meta('ID'), 96); ?>

 

On the detail page I can see the avatar (outside the loop) but on the listpage it seems that the system can not determine which avatar to use and shows the standard avatar.

Is there any way to tell WP User Avatar which listing belongs to which author on the list page?

 

Greets
Thomas

Edited by Thomas Venugopal
Link to comment
×
×
  • Create New...