I have an Author content_type that I'm switching out for username in articles. The problem is that a story can have multiple authors, and the following code in template.php will only generate the first author. How can I get this to output to be readable as "By John Smith, Jane Doe and Mary Poppins | Feb 19, 2010"?
function mytheme_date($node) {
return t('By !username | !datetime',
array(
'!username' => t($node->field_author[0][view]),
'!datetime' => t($node->field_publish_date[0][view]),
));
}
Please bear in mind that I'm also wanting to use this for views too, so that a node reference will output correctly there too.
Thanks, Steve