I've spent the last hour trying to figure out how to get the extra fields and the website URL into my single.php. I've tried $coauthor->website, $coauthor->url, $coauthor->user_website, $coauthor->user_url, and nothing shows up, ever.
<?php $coauthors = get_coauthors(); ?> <?php foreach( $coauthors as $coauthor ): ?> <div class="details"> <?php $author_id = get_userdata( $coauthor->ID ); $author_site = get_userdata( $coauthor->user_url ); ?> <?php echo get_avatar( $coauthor->user_email, '80' ); ?> <ul class="authorinfo"> <li class="name vcard author"><strong class="fn"><a href="<?php echo get_author_posts_url($coauthor->ID); ?>"><?php echo $coauthor->display_name; ?></a></strong></li> <li class="url"><?php echo $author_site; ?></li> </ul> </div> <?php endforeach; ?>
Same for my custom fields, which work great on the backend, but $coauthor->twitter, for instance, is no joy.
What am I doing wrong?
And is there by any chance a list of template tags, aside from opening up template-tags.php and sifting through it? All it seems to have are mostly functions for displaying author names and links, but I see nothing for website URL or custom fields. I couldn't find documentation on either the WP plugin page or in the readme. Just that one post on your website about changing functions.php, which doesn't apply to my theme at all.
Thanks in advance!