• Resolved kenoki

    (@kenoki)


    Hello,

    Instead of a “posted by ____” text thing, I would like to include an image associated with author at the bottom of his/her post. For instance, at the bottom of a post it would have an image of the author’s signature. I have searched the forums (author + image) and documentation (author templates) but haven’t been able to find anything. Any help would be greatly appreciated!

    Thanks!
    Jackie

Viewing 3 replies - 1 through 3 (of 3 total)
  • I haven’t seen that exact thing done as you describe, but I have seen an author “block” or “blurb” at the bottom of a post on individual entry pages in a theme called Mimbo. Is that what you want? You would add this code beneath the post code in your single.php file:

    <div id="writer">
    <img src="<?php bloginfo('template_url'); ?>/images/<?php the_author_login(); ?>.jpg" alt="" />
    <?php the_author_posts_link('namefl'); ?> is <?php the_author_description(); ?>
    <a href="mailto:<?php the_author_email(); ?>" title="Email this author">Email this author</a> | All posts by <?php the_author_posts_link('namefl'); ?>
    
    </div>

    And you’d need to create the images for each author (headshot or avatar) and save it in your theme’s /images folder. And name it whatever the author’s name is, exactly as written. For example, for your own, you’d create an image called Jackie.jpg and upload it to the /images folder.

    And you can style that division #writer however you want in your stylesheet. Put a border around it, make it a different color, etc.

    HTH.

    Thread Starter kenoki

    (@kenoki)

    Perfect!! Thank you. I basically left it to just this part of the code you provided:

    <img src="<?php bloginfo('template_url'); ?>/images/<?php the_author_login(); ?>.jpg" alt="" />

    Which did exactly what I was hoping. Thanks so much!

    Jackie

    You guys are great for posting this. It’s exactly what i was looking for. 🙂

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘author image with each post’ is closed to new replies.