Support » Fixing WordPress » quick question regarding the_author
10 years, 5 months ago
I have some code in place to show an image if the post is made in a certain category. How do I do the same thing but for individual authors? I want a small image to show that will change for the 4 other authors on my site.
Any help appreciated.
A quick google (it helps) brought this up
Ah thank you. Though I’m looking for a bit of code that will display an image, or any HTML, that changes for each author.
Look at a particular post on my site:
The ‘Editors Insights’ image only appears on posts made under the Articles category, as opposed to the News category.
I’m looking to have another image below that one, and it’ll change depending on the author, and like the ‘Editors Insights’ image it’ll only be visible on Articles.
Try custom fields instead. You can stipulate what to show where and how
Also, some of these (apparently) related topics may offer some insight: http://wordpress.org/search/author+image?forums=1
@handysolo – I did that myself… actually typed “author image” (without “) in the search box, because it was logical and rational to do so. Searching first helps enormously.
I could not generate the page you did.