punkrot replied
This pretty much does the trick. Add a custom field named image_credit (value = the photographer's name) if you want to list an unlinked name, and image_credit_id (value = user ID) if you want to have the author's name linked to their author archive.
*****
<span class="image-credits">
<?php
$imageCredit = get_post_meta($post->ID, 'image_credit', true);
$imageCreditId = get_post_meta($post->ID, 'image_credit_id', true);
if ($imageCreditId) { ?>
| images by <a class="author-url" href="<?php echo get_author_posts_url( $imageCreditId ); ?>">
<?php echo get_the_author_meta('display_name', 1); ?>
<?php
} elseif ($imageCredit) { ?>
| images by <?php echo $imageCredit; ?>
}
<?php } else { // do nothing; }
?>
</span>
*****
<span class="author-post">
<?php coauthors_posts_links(' and ', ' | images by ', 'written by ', '', true); ?>
</span>