Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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