Co-Authors Plus
[resolved] Replace authors with coathors in List Category Posts widget (2 posts)

  1. Jamil Jonna
    Posted 6 years ago #

    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">';
    	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?

  2. Jamil Jonna
    Posted 6 years ago #

    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.

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