WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. dwightmartino
    Member
    Posted 10 months 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?

    http://wordpress.org/plugins/co-authors-plus/

Reply

You must log in to post.

About this Plugin

About this Topic