Title: Custom display multiple authors
Last modified: August 22, 2016

---

# Custom display multiple authors

 *  [ADKSherpa](https://wordpress.org/support/users/adksherpa/)
 * (@adksherpa)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/custom-display-multiple-authors/)
 * When a post has one author, everything is perfect. Here’s the code I have in 
   single.php of my theme:
 *     ```
       <b>By <?php the_author_posts_link(); ?></b>
       <br><i><?php
       $value = get_cimyFieldValue(get_the_author_ID(), 'TITLE');
       echo cimy_uef_sanitize_content($value);
       ?></i>
       ```
   
 * And here’s an example: [http://rhodycigar.com/2014/08/30/freshman-year-survival-guide/](http://rhodycigar.com/2014/08/30/freshman-year-survival-guide/)
 * But if the post has multiple authors, it only shows the first one. Ideally, if
   there were more than one, it would say “By person 1 & person 2” then would skip
   the Cimy field. I’m just not sure how to code that. Any suggestions?
 * [https://wordpress.org/plugins/co-authors-plus/](https://wordpress.org/plugins/co-authors-plus/)

Viewing 1 replies (of 1 total)

 *  [Jeremy Varnham](https://wordpress.org/support/users/jvarn13/)
 * (@jvarn13)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/custom-display-multiple-authors/#post-5242998)
 * From the [FAQ](https://wordpress.org/plugins/co-authors-plus/faq/):
 * **How do I add Co-Authors Plus support to my theme?
    
   If you’ve just installed
   Co-Authors Plus, you might notice that the bylines are being added in the backend
   but aren’t appearing on the frontend. You’ll need to[ add the template tags to your theme](http://vip.wordpress.com/documentation/incorporate-co-authors-plus-template-tags-into-your-theme/)
   before the bylines will appear.
 * So:
 *     ```
       <b>By <?php if ( function_exists( 'coauthors_posts_links' ) ) {
           coauthors_posts_links();
       } else {
           the_author_posts_link();
       } ?></b>
       <br><i><?php
       $value = get_cimyFieldValue(get_the_author_ID(), 'TITLE');
       echo cimy_uef_sanitize_content($value);
       ?></i>
       ```
   

Viewing 1 replies (of 1 total)

The topic ‘Custom display multiple authors’ is closed to new replies.

 * ![](https://ps.w.org/co-authors-plus/assets/icon-256x256.png?rev=2945095)
 * [Co-Authors Plus](https://wordpress.org/plugins/co-authors-plus/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/co-authors-plus/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/co-authors-plus/)
 * [Active Topics](https://wordpress.org/support/plugin/co-authors-plus/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/co-authors-plus/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/co-authors-plus/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Jeremy Varnham](https://wordpress.org/support/users/jvarn13/)
 * Last activity: [11 years, 5 months ago](https://wordpress.org/support/topic/custom-display-multiple-authors/#post-5242998)
 * Status: not resolved