WordPress.org

Ready to get started?Download WordPress

Forums

quick question regarding the_author (6 posts)

  1. louse101
    Member
    Posted 7 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
    Member
    Posted 7 years ago #

    A quick google (it helps) brought this up

    coffee2code.com/archives/2005/03/28/plugin-author-images/

  3. louse101
    Member
    Posted 7 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:

    http://www.techsmessage.com/2006/10/06/but-i-dont-want-a-ps3-i-want-a-wii/

    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
    Member
    Posted 7 years ago #

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

    http://codex.wordpress.org/Using_Custom_Fields

  5. Chris_K
    Member
    Posted 7 years ago #

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

  6. KatGirl
    Member
    Posted 7 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.

    Strange...

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags