WordPress.org

Forums

[resolved] Adding a Photo of Users (7 posts)

  1. rmansheim
    Member
    Posted 9 years ago #

    I was wondering if any one can help me attach a photo of our blogs to their posts? What I want to have is by default when my users post their picture shows up on either their posts or comments?
    Help?

    I am also using about four different themes and would like to use this function on all of my themes, is this also possible?
    Thanks

  2. paradoxdruid
    Member
    Posted 9 years ago #

    The easiest way would be to add a photo of each user to the wp-content directory, named their_username.jpg

    Then, in your code in the loop where you want the photo to appear, add <img src="<?php the_author(); ?>" alt="photo of <?php the_author(); ?>" />

  3. rmansheim
    Member
    Posted 9 years ago #

    Thanks

  4. dafinga
    Member
    Posted 9 years ago #

    I have text outputting where the image is supposed to be, but how do I call the .jpg file?

  5. dafinga
    Member
    Posted 9 years ago #

    just figured out ... disregard "pre-mature" post.

  6. coreyallen
    Member
    Posted 9 years ago #

    I tried this and all i get is a small box that say "photo of" and then the author name
    i've got jpegs of the author name in the correct directory..hell i uploaded them to every directory just to be safe..no clue

  7. carnold
    Member
    Posted 9 years ago #

    @dafinga-could you share what you did to call the image file (so it will show the jpg)?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags