Author’s website
-
I’m trying to get it so that when a certain author makes a post, a link will be given to their website. I want this link to be an image link, though, and not a text link. The image is unique to them and is put in the post with this code:
<?php if ( get_post_meta($post->ID, 'profile', true) ) { ?> <div class="profile_img_home"><img src="<?php bloginfo('stylesheet_directory'); ?>/images/profile/<?php echo get_post_meta($post->ID, "profile", $single = true); ?>" alt="<?php the_author(); ?>" /></div> <?php } ?>
Basically, they go down into the custom fields section and enter in the last portion of the image location (i.e. michael.gif) and the iamge will be put in the post if they’ve entered that bit.
What I’m wondering, is how do I work this code with the_author_link? Do I put the code above in the brackets of the code following:
<?php the_author_link(); ?>
Any help is greatly appreciated.
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘Author’s website’ is closed to new replies.