I'm looking for a way to retrieve all authors with their avatar.
I know there is a way to get an authors avatar but I want to get all avatars of all the authors :)
echo get_avatar(get_the_author_meta('ID'), '160');
I tried to combine this command with wp_list_authors()
but didn't find a way.
How can I retrieve a list of all authors with their avatars?
Thank you!
wp_list_authors
just uses the user API functions, and so can you,get_the_author_meta
is just a wrapper aroundget_user_meta( $post->post_author, 'ID'...
wp_list_authors
is the solution, that function returns a HTML/plaintext string rather than an array of users