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

  1. iamjoshing
    Posted 2 years 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?


  2. Rick
    Posted 1 year ago #

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

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

About this Topic