Support » Plugin: Co-Authors Plus » Integrating the function coauthors_posts_links in other widgets

  • dwightmartino


    I have a widget the pulls the most recent posts from the loop based on category and tag. I’ve been able to integrate Co-Authors Plus into my theme, but not had any luck putting it into the widget residing on my homepage. All it does is grab the page author and not the authors of the posts in the widget.

    My page is at
    See below:

    if ( function_exists( 'coauthors_posts_links' ) ) {
        $author_data = coauthors_posts_links($post->ID);
    } else {
         $author_data = get_userdata($post->post_author);

    Oddly enough when any attempt at implementing co-authors plus in the widget is done, the author link shows up at the top of the widget in addition to the byline where it’s supposed to be.

    Any ideas?

  • The topic ‘Integrating the function coauthors_posts_links in other widgets’ is closed to new replies.