Per author avatar in WordPress
There are many blogs in “the wild” which are run by more than 1 person. Multiple authors contributing to a blog. Many of these blogs also run WordPress.
Now, most multiple user blogs in WordPress have a small writing somewhere below the post which informs the readers who wrote it. But sometimes, that ain’t enough. Large publications often use a per author mugshot to distinguish between authors.
There is an easy way of achieving this in WordPress.
First and foremost, upload the images, with a common extension, and the same name as the author’s first name, to a suitable location, say wp-content/images.
So, for users Bert and Ernie, I should have images Bert.png and Ernie.png. This is essentially important; so double check the names.
Now, within the loop, place the following code anywhere you fancy:
And your lovely mugshot will be out for the World to see!
A simple hack, yet something people rarely use or find.
June 25th, 2006 at 9:12 pm
A simple, yet useful hack. Not much code written, but it’s a good idea.
June 30th, 2006 at 12:40 am
Thank you.
August 24th, 2006 at 10:14 pm
Very simple, very good.
September 13th, 2008 at 3:24 am
I’m giddy, this is so genius.
September 13th, 2008 at 5:34 pm
Thx for this code! i was searching for sth like this, but this is the most simple one! genius!
October 20th, 2008 at 4:09 am
you’ve saved me so many headaches. thanks!