WordPress.org

Ready to get started?Download WordPress

Forums

User Icons (6 posts)

  1. borgo
    Member
    Posted 10 years ago #

    Hi !
    I believe i'm in the good section for my query.
    We are two authors on my blog and I'd like to add a specific Icon on the right side of the post in order to visually identify faster yhe author. I've been looking around support and haven't found anything on this.
    Any clue ?
    Thanks.

  2. NuclearMoose
    Member
    Posted 10 years ago #

    Googling "site:wordpress.org image for author" gave these results.

  3. satoshi
    Member
    Posted 10 years ago #

    I set something like this up once: http://www.trashfolder.org/ffxi/.
    I'd give you code, but the template for the index.php seems to be giving me the default code...

  4. satoshi
    Member
    Posted 10 years ago #

    Alright, here we go:
    <img class="autimg" src="authors/<?php the_author() ?>.gif">
    Just set up a folder called authors (or change it how you like) and put gif files there (or images of another format, just don't forget to change the img tag) with the names of the author(s). Of course, you need to set up your stylesheets and such to your preference, but that should be no problem.

  5. borgo
    Member
    Posted 10 years ago #

    Thanks i'll give it a try straight away ;)

  6. tbag
    Member
    Posted 9 years ago #

    Im new to php:

    where would you put that piece of code if u want it to post in the post's title (where the date is etc)?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.