I am trying to set up a “Search by Author” on a blog I am adding to a community website.
I can get the avatars to show up, but instead of a list of avatars, I am getting an avatar for every single entry. I want to remove duplicates and show each author only once.
I understand that the code below will result in it pulling all author's avatars for every.single.post on the site. I have about 10 authors and I want to show their avatars that will link to a list of their blogs.
{exp:channel:entries
channel="blog"
orderby="asc"
dynamic="no"
style="nested"
}
{if avatar}
<a href="{site_url}blog/author/{member_id}" class="blogimg">
<img src="{avatar_url}" class="imgblogauthorbar"/>
</a>
{/if}
{/exp:channel:entries}
Any advice on how to go about making this work?