badget

Biggest Sale! Special Offer!

Get 30% discount on all of our single themes with this coupon code: #30%SALE

Hurry up! *Limited time offer*

Reply To: How to make co-authors plus to work?

#44970
kumar.dhanasekharan
Participant

Thanks! My goal is to be able to assign multiple authors to a single post. If I can do this directly in Clean Retina, let me know how to do it. I found a plug-in that can assign multiple authors to a single post called “Co-Authors Plus”. Here’s what I am trying to do as per the instructions from Co-Authors Plus. https://vip.wordpress.com/documentation/incorporate-co-authors-plus-template-tags-into-your-theme/

Some excerpt from the Co-Authors Plus page:
To integrate Co-Authors Plus, you’ll want to replace existing author template tags in your theme with a simple conditional that uses the Co-Authors Plus template tags if Co-Authors Plus is available. The conditional prevents your site from breaking (e.g. white screen of death) if Co-Authors Plus isn’t activated.

For example, here’s how you would update the_author_posts_link() to instead use coauthors_posts_links():

?
1
2
3
4
5
if ( function_exists( ‘coauthors_posts_links’ ) ) {
coauthors_posts_links();
} else {
the_author_posts_link();
}
However, the example above is a relatively simplistic way of presenting bylines. There’s a good chance your theme will need an adaptation of it.