Skip to content
Gary Jones edited this page Aug 25, 2023 · 5 revisions

The Co-Authors Plus plugin makes it easy to assign one or more bylines to a post. Upon activation, you’ll be able to start assigning multiple bylines right away. In order for those bylines to appear on the frontend, you may need to make some small modifications to your theme.

Assign multiple bylines to posts, pages, and custom post types via a search-as-you-type input box. Co-authored posts appear on a co-author's archive page and in their feed. Co-authors may edit the posts they are associated with, and co-authors who are contributors may only edit posts if they have not been published (as is core behavior).

This plugin is an almost complete rewrite of the Co-Authors plugin originally developed by Weston Ruter (2007). The original plugin was inspired by the 'Multiple Authors' plugin by Mark Jaquith (2005).

WordPress multisites

Co-Authors Plus can be network-activated on a WordPress multisite, or on a site-by-site basis. If you create guest authors, however, those guest authors will exist on a site-by-site basis.

Sites with large databases

If a site has a large database, you may run into issues with heavier than usual queries. You can work around this by disabling compat mode and force it to use simpler, tax-only queries by adding the following to your theme:

// Use simple tax queries for CAP to improve performance
add_filter( 'coauthors_plus_should_query_post_author', '__return_false' );

Note: This requires the site(s) to have proper terms set up for all users. You can do this with the following wp-cli command:

# This is pretty long-running and can be expensive; be careful!
$ wp --url=example.com co-authors-plus create-terms-for-posts

Glossary

  • User - a WordPress user account.
  • Guest author - a CAP-created co-author.
  • Co-author - in the context of a single post, a guest author or user assigned to the post alongside others.
  • Author - user with the role of author.
Clone this wiki locally