Guest User

Untitled

a guest
Apr 21st, 2015
359
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.88 KB | None | 0 0
  1. //show the author under title
  2. if (td_util::get_option('tds_show_author_under_title') == 'show') {
  3. //echo $td_mod_single->get_author();
  4. $coauths = get_coauthors();
  5. if (count($coauths) > 1) {
  6. echo "von ";
  7. foreach($coauths as $key => $coauth) {
  8. echo '<a href="/author/'.$coauth->user_nicename.'">'.$coauth->display_name.'</a>';
  9. // add "and"
  10. if ($key != count($coauths)) {
  11. echo ' und ';
  12. $coauths = substr($coauthsHTML, 0, -4);
  13. }
  14. }
  15. } else {
  16. echo $td_mod_single->get_author();
  17. };
  18. }
Advertisement
Add Comment
Please, Sign In to add comment