ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Showing blog authors

November 24, 2011 10:10am

Subscribe [2]
  • #1 / Nov 24, 2011 10:10am

    zizther

    228 posts

    Hi,

    On posts i want to be able to show the name and image of the author who created the post.

    Also i want to list the images of the authors who have posts in the sidebar.


    Could someone advise me on how to do this and the best way to set this up.


    Thanks

  • #2 / Nov 24, 2011 8:01pm

    Sean C. Smith

    3818 posts

    Hi zizther,

    You can find the tags you need to do that here. When you say “images of the authors” do you mean avatar or photo?

    {exp:channel:entries channel="channel_name"}
      your entry code
    
      {author}
    {if avatar}
            {avatar_url}
    {/if}
    
    {/exp:channel:entries}

    Sean

  • #3 / Nov 25, 2011 4:04am

    zizther

    228 posts

    Thanks Sean.

    Each member on the site will have a profile with an images, so if they do post then maybe the profile image of that person could show, and when clicked take the suer to a list of their posts.

  • #4 / Nov 27, 2011 7:12am

    Sean C. Smith

    3818 posts

    zizther,

    Great then the code I used above should work for you if you swap out avatar for the relevant photo tags. Since this post is more of a how-to than technical support, I’m going to move it to community support.

    Sean

  • #5 / Nov 27, 2011 8:46am

    zizther

    228 posts

    Thanks again Sean!

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases