Support » Plugin: Co-Authors Plus » Show secondary authors with hooks

  • 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?

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Show secondary authors with hooks’ is closed to new replies.