[Plugin: Co-Authors Plus] Display two ‘posted by’ boxes?
-
Hi there, could really use some help and I am a very novice WP/PHP user. I am actually running 2.9.2 but the version dropdown does not include this option.
Currently our theme displays a Posted By box for each single page post, using a Gravatar and user bio information. The code is as follows:
<div class="author_bio"> <p><?php echo get_avatar( get_the_author_email(), '80' ); ?> <span style="color:#999;">POSTED BY | </span><b><?php the_author_link(); ?></b><br /> <?php the_author_meta('description'); ?></p> </div>
We have recently had a need to show multi-authored posts, which seems to be ideally suited for the Co Authors Plus plugin. However I’m not at all sure how to execute this in the actual template. The code needs to be able to see if the post has more than one author, and if so, display multiple boxes with each author’s Gravatar and bio. And if it’s a single author, display only their info.
Any help would be greatly appreciated.
- The topic ‘[Plugin: Co-Authors Plus] Display two ‘posted by’ boxes?’ is closed to new replies.