Support » Fixing WordPress » How-To: Using with User Photo Plugin

  • Resolved Weston Ruter


    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') . '">';
        print '<li>';
        print "<a href='" . get_author_posts_url($authordata->ID) . "'>";
            userphoto_the_author_thumbnail('', '<br />');
        print '</a></li>';
    print '</ol>';

Viewing 1 replies (of 1 total)
  • 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!

Viewing 1 replies (of 1 total)
  • The topic ‘How-To: Using with User Photo Plugin’ is closed to new replies.