WordPress.org

Ready to get started?Download WordPress

Forums

Blog post with author pic? (2 posts)

  1. ryansebiz
    Member
    Posted 7 years ago #

    I need to setup a blog with multiple users.

    Is there a way to display a thumbnail of each author that automatically appears when they post?

    For example have it link to an image of them on the server?

  2. billh
    Member
    Posted 7 years ago #

    First off, create images of your authors and put them in a directory accessible to WP. Name the images the name of the author, i.e. my name is billh, so I'd make my pic billh.jpg.

    Using the default Kubrick theme, open the file "index.php" in the your favorite text editor (do NOT use a word processor such as Word!).

    Edit line #11. It looks like this in the original file:
    <small><?php the_time('F jS, Y') ?> <!-- by <?php the_author() ?> --></small>

    Change it to this:
    <small><?php the_time('F js, Y') ?> <img width="40" height="40" src="pathtopics<?php the_author() ?>.jpg" alt="Posted by <?php the_author() ?>" /> </small>

    You can change the values of "40" to anything you want, I just chose that as an arbitrary value. When you change themes, you'll have to change where this kind of line appears.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.