Support » Fixing WordPress » Adding a Photo of Users

  • Resolved rmansheim


    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?

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

Viewing 6 replies - 1 through 6 (of 6 total)
  • 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(); ?>" />


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

    just figured out … disregard “pre-mature” post.

    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 clue

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

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Adding a Photo of Users’ is closed to new replies.