Support » Plugin: Co-Authors Plus » Author description problem on frontend

Viewing 1 replies (of 1 total)
  • I am using following code to show my bio.

    <?php $coauthors = get_coauthors(); ?>
    <?php foreach( $coauthors as $coauthor ): ?>
    <div class="author-descrip">
    <?php echo $userdata = get_userdata( $coauthor->ID ); ?>
    <?php if ( $userdata->user_description ) echo $userdata->user_description; ?>
    <?php endforeach; ?>

    [Moderator Note: Please post code & markup between backticks or use the code button. Your posted code may now have been damaged by the forum’s parser.]

Viewing 1 replies (of 1 total)
  • The topic ‘Author description problem on frontend’ is closed to new replies.