Co-Authors Plus
Integrating the function coauthors_posts_links in other widgets (1 post)

  1. dwightmartino
    Posted 2 years ago #

    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 http://bit.ly/14GwvDF
    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?


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