Forum Replies Created

Viewing 1 replies (of 1 total)
  • Hi! First off thanks for enhancing this plugin it sounds like I am needing however I am having troubles implementing the plugin with my K2 theme template. I have added the above code:

    function use_coauthors() {
    $authors = get_coauthors();
    $numauthors = count($authors);
    $result = ”;
    foreach($authors as $author){
    $result .= $author->display_name;
    if ($numauthors > 2) {
    $result .= ‘, ‘;
    } elseif ($numauthors == 2) {
    $result .= ‘ and ‘;
    } else {
    $result .= ”;
    }
    $numauthors–;
    }
    return $result;
    }
    if ( function_exists(‘get_coauthors’) )
    add_filter(‘the_author’,’use_coauthors’);

    and also replaced all my the_author with coauthors, yet it still does not seem to appear on my blog.

    Any help would be greatly appreciated.

    Thanks so much in advance!

Viewing 1 replies (of 1 total)