WordPress.org

Forums

Co-Authors Plus
Show secondary authors with hooks (2 posts)

  1. iamjoshing
    Member
    Posted 11 months ago #

    I need to use your plugin to show secondary authors below the main author. I was able to do this by changing the coauthor__echo function in the template-tags.php file to

    ...
    // Append separators
    		if ( ! $i->is_first() && $i->count() > 3 )
    			$output .= $separators['between'];
    
    		if ( $i->is_last() && $i->count() > 2 ) {
    			$output = rtrim( $output, $separators['between'] );
    			$output .= $separators['betweenLast'];
    
    ...

    and using CSS to display:none the first author.

    Obviously, this is a hack and won't sustain when your plugin gets updated.

    What would be the best way to add this functionality to my site?

    Can do this in my functions.php file?

    https://wordpress.org/plugins/co-authors-plus/

  2. Rick
    Member
    Posted 9 months ago #

    I am trying to do the same thing. Any help would be wonderful!

Reply

You must log in to post.

About this Plugin

  • Co-Authors Plus
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic