Ready to get started?Download WordPress


quick question regarding the_author (6 posts)

  1. louse101
    Posted 8 years 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.

  2. KatGirl
    Posted 8 years ago #

    A quick google (it helps) brought this up


  3. louse101
    Posted 8 years ago #

    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.

  4. KatGirl
    Posted 8 years ago #

    Try custom fields instead. You can stipulate what to show where and how


  5. Chris_K
    Posted 8 years ago #

    Also, some of these (apparently) related topics may offer some insight: http://wordpress.org/search/author+image?forums=1

  6. KatGirl
    Posted 8 years ago #

    @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.


Topic Closed

This topic has been closed to new replies.

About this Topic