Hi,
Trying to display the avatar for the user that created the post instead of the current user. Some help?
For reference here’s my code;
<div id=”posts_box”> {exp:channel:entries channel="video"} <!–sub box that centers them–> <div id=”post”>
<div id=”video_title”> {video_title} </div>
<div id=”video”> <iframe title=”YouTube video player” class=”youtube-player” type=”text/html” width=”640” height=”390” src=”{video_url}” frameborder=”0” allowFullScreen></iframe> </div>
<div id=”video_description”> {exp:member:custom_profile_data}{avatar_url} {/exp:member:custom_profile_data}{screen_name}
Playing {game_title}
Published {entry_date format="%F %j, %Y"} </div>
</div>
{/exp:channel:entries}
According to this: https://docs.expressionengine.com/latest/channel/channel_entries.html#avatar-url
It should be:
{if avatar}
{avatar_url}
{/if}
Placed inside the channels entry tag.
Hope this helps, Ingo
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.