WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] How-To: Using with User Photo Plugin (2 posts)

  1. Weston Ruter
    Member
    Posted 6 years ago #

    Here's an example of how the Co-Authors plugin may be used along with the User Photo plugin:

    $c = new CoAuthorsIterator();
    print '<ol class="' . ($c->count() == 1 ? 'single' : 'multiple') . '">';
    while($c->iterate()){
        print '<li>';
        print "<a href='" . get_author_posts_url($authordata->ID) . "'>";
        if(function_exists('userphoto_the_author_thumbnail'))
            userphoto_the_author_thumbnail('', '<br />');
        the_author();
        print '</a></li>';
    }
    print '</ol>';

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

  2. eliotc
    Member
    Posted 6 years ago #

    Hey Weston, thanks for the great plugin.

    I'm having some trouble with the coauthors_wp_list_authors() function.

    I have a post with two authors using the plugin. The first author has other posts, but the second has only the one post on which he is a co-author.

    Should the second author show up when coauthors_wp_list_authors() is called? At the moment, his name doesn't come up. I've tried the different arguments for the function, such as hide_empty, but with no luck so far.

    Could you help me out?

    Thanks again! Great plugin!

Topic Closed

This topic has been closed to new replies.

About this Topic