Guest User

Untitled

a guest
Sep 27th, 2017
245
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. function get_coauthors() {
  2. $buffy = '';
  3. $coauths = get_coauthors($this->post->ID);
  4. if (count($coauths) > 1) {
  5. foreach ($coauths as $key => $coauth) {
  6. $buffy .= '<span class="td-post-author-name"><a href="/author/' . $coauth->user_nicename . '">' . $coauth->display_name . '</a></span>';
  7. }
  8. } else {
  9. $buffy .= $this->get_author();
  10. };
  11.  
  12. return $buffy;
  13.  
  14. }
Advertisement
Add Comment
Please, Sign In to add comment