Skip to content

Instantly share code, notes, and snippets.

@generatepress
Last active June 16, 2017 06:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save generatepress/b5bb793b79c2274aee4e to your computer and use it in GitHub Desktop.
Save generatepress/b5bb793b79c2274aee4e to your computer and use it in GitHub Desktop.
Integrate the Co Author Plus plugin with GeneratePress
add_filter( 'generate_post_author_output', 'tu_co_author_plus' );
function tu_co_author_plus( $author ) {
if ( function_exists( 'coauthors_posts_links' ) ) {
return ' by ' . coauthors_posts_links( null, null, null, null, false );
}
return $author;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment