• If you know how, can you please tell me how to replace authors with coauthors in a widget? The widget I’m using is “List Category Posts”. I just want both authors to appear, without links. I used some shortcode…

    function mr_coauthor_shortcode() {
    	echo '<p class="byline">by <span class="coauthors">';
    	if(function_exists('coauthors_posts_links'))
    	    coauthors_posts_links();
    	else
    	    the_author_posts_link();
    	echo '</span>';
    }

    To place the coauthors in my byline but I can’t figure out how to simply replace all instances of “the_author” with “coauthors”. Should I just make a function like the above? If so, where do I call it?

Viewing 1 replies (of 1 total)
  • Thread Starter Jamil Jonna

    (@jonna)

    I figured this out by using a different—and awesome—plugin: Query Posts. This is definitely the best of its kind. Simply insert the shortcode (as above) into the widget.

Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: Co-Authors Plus] Replace authors with coathors in List Category Posts widget’ is closed to new replies.