在这里,我们找到了一条很好的线索,它给出了一些答案,并开发了这条线索,它很有效:
if ( class_exists( \'coauthors_plus\' ) ) {
$co_authors = get_coauthors();
foreach ( $co_authors as $key => $co_author ) {
$co_author_classes = array(
\'co-author-wrap\',
\'co-author-number-\' . ( $key + 1 ),
);
echo \'<div class="\' . implode( \' \', $co_author_classes ) . \'"><a href="\' . get_author_posts_url($co_author->ID) . \'" style="color:#ffffff;">\';
echo userphoto_thumbnail( $co_author );
echo \'</a></div>\';
}
}