new plugin: Co-Authors Plus

We had a request from The Choices Program to show a byline for multiple instructors. So, we added the Co-Authors Plus plugin to the Brown Blogs network. Doing so¬†enables some co-author functionality but it doesn’t actually go into the theme and fix the byline codes. Since The Choices Program uses the Hemingway theme, I took the following actions in said theme:

Find the files that render the author byline:

cd /navigate/to/theme
grep "post-author" -nroI .

Replace this:

<?php the_author_posts_link(); ?>

With this:

<?php if ( function_exists( 'coauthors_posts_links' ) ) {
 coauthors_posts_links();
 } else {
 the_author_posts_link();
 }
 ?>

This post is partly to mention how we run this blog service but also to serve as documentation for how to handle future requests regarding co-authors. The steps will be different for each theme.

If you need co-authors, please submit a ticket to the service center.

Feb 26 update: one other thing that we will need to keep in mind (going forward) is that the customizations to the Hemingway theme are local to our instance of it and if the theme author (Anders Noren) makes an update, we would need to re-add our customizations to the updated Hemingway.