WordPress.org

Forums

Problem with Co Authors and Author Bios (1 post)

  1. swap002
    Member
    Posted 1 year ago #

    I'm using Co Authors Plus with Hueman theme for guest authors. I edited single.php file to show the author name in byline but if I use coauthors_posts_links() in conditional it doesn't show name of the co-author in the byline but it'd still hyperlink the name to the co-author's slug. E.g. it shows Swap as author name in the byline which is linked to Adi. But it'd work perfectly fine if I use coauthors() function. This particular problem occurs only when I want to assign the post to single guest author who doesn't have user account on blog.

    Second, I'm not able to show co-author's bio below the article. I tried to modify the theme to integrate the plug-in but it didn't work.
    Code for author bio is,

    <?php if ( ( ot_get_option( 'author-bio' ) != 'off' ) && get_the_author_meta( 'description' ) ): ?>
    			<div class="author-bio">
    				<div class="bio-avatar"><?php echo get_avatar(get_the_author_meta('user_email'),'128'); ?></div>
    				<p class="bio-name"><?php the_author_meta('display_name'); ?></p>
    				<p class="bio-desc"><?php the_author_meta('description'); ?></p>

Topic Closed

This topic has been closed to new replies.

About this Topic