Support » Plugin: Co-Authors Plus » Bug in function coauthors_posts_links_single()

  • Hi,

    I discovered a bug in the function coauthors_posts_links_single(). The function always returns the display name of the first co-author. To correct this, edit

    template-tags.php

    and replace

    'title' => sprintf( __( 'Posts by %s', 'co-authors-plus' ), get_the_author() ),
    'text' => get_the_author(),

    with

    'title' => sprintf( __( 'Posts by %s', 'co-authors-plus' ), get_the_author_meta('display_name', $author->ID) ),
    'text' => get_the_author_meta('display_name', $author->ID),

    Cheers,
    Andreas

    http://wordpress.org/extend/plugins/co-authors-plus/

Viewing 1 replies (of 1 total)
  • Update:

    to get it working with guest accounts, replace the above with

    'title' => sprintf( __( 'Posts by %s', 'co-authors-plus' ), $author->display_name ),
    'text' => $author->display_name,

    Cheers,
    Andreas

Viewing 1 replies (of 1 total)
  • The topic ‘Bug in function coauthors_posts_links_single()’ is closed to new replies.