Adding an author picture
-
Hi
I’m trying to get author pictures to appear next to posts using the method described in the WordPress 2 Visual Quickstart Guide book; that is, placing the following code in my theme’s index.php file
<img src="<?php get_bloginfo('url'); ?>wp-content/images/authors/<?php the_author_ID();?>.jpg" class="auth" alt="<?php the_author(); ?>. " title="<?php the_author(); ?> "/>
I’ve created a directory at wp-content/images/authors and uploaded a picture which is named the same as my author ID but the picture is not appearing. Assuming the code is correct (I don’t know enough PHP to say for sure) then I guess it must be either a problem with my path or maybe permissions? Or is there something else I haven’t thought of?
Any help appreciated – many thanks.
Neil
- The topic ‘Adding an author picture’ is closed to new replies.