Get author if post has multiple authors

The Co-Authors Plus plugin uses it’s own template tags which replace the default WordPress tags, the_author() and the_author_posts_link().

  • coauthors() – Outputs the co-authors display names, without links to their posts.
  • coauthors_posts_links() – Outputs the co-authors display names, with links to their posts.
  • coauthors_links() – Outputs the co-authors display names, with links to their websites if they’ve provided them.

You’ll need to add one of those functions to your code.

For specific examples, see the Co-Authors Plus Documentation.