WordPress.org

Ready to get started?Download WordPress

Forums

Co-Authors Plus
[resolved] Co Authors Plus Implementation (2 posts)

  1. design_girl
    Member
    Posted 2 years ago #

    I want to show two author names with "by" in front. However, when I add the argument it doesn't seem to work. I simply get two names with 'and' between them with no "by".

    Am I implementing the plugin correctly? Here is my code:

    if(function_exists('coauthors')) {
    coauthors( array( 'before' => 'by')); }
    else { the_author(); }

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

  2. Daniel Bachhuber
    Hand Built
    Plugin Author

    Posted 2 years ago #

    Try something like this:

    if ( function_exists('coauthors') ) {
    echo 'By ';
    coauthors();
    } else {
    the_author();
    }

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic