Viewing 1 replies (of 1 total)
  • Byline output is usually located in the theme’s inc/template-tags.php, and/or you might see these inside files like single.php and author.php.

    If trouble locating the byline output function in your theme, contact the theme author(s) for assistance/instructions for adding Co-Authors Plus

    // Display name(s) with no links
    if ( function_exists( 'get_coauthors' ) ) {
    
      // Output display names
      coauthors( null, null, null, null, true );
    
    } else {
    
      // Replace with your theme's byline code
      the_author();
    
    }
    // Display name(s) with links
    if ( function_exists( 'coauthors_posts_links' ) ) {
    
      // Output display names with links.
      coauthors_posts_links( null, null, null, null, true );
    
    } else {
    
      // Replace with your theme's byline code
      echo '<span class="author vcard"><a class="url fn n" href="' 
           . esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ) . '"
           . title="' . esc_attr( get_the_author_meta( 'display_name' ) ) . '">'
           . get_the_author_meta( 'display_name' ) . '</a></span>';
    }
Viewing 1 replies (of 1 total)
  • The topic ‘Help to Show Co-author plus on the frontend’ is closed to new replies.