• zamascad

    (@zamascad)


    Hello there. I want Co-Authors Plus plugin to display multiple authors in their individual author box with their individual description, image and name. I implemented your code in such manner in my theme code(Child theme) reading your Document: https://docs.wpvip.com/technical-references/plugins/incorporate-co-authors-plus-template-tags-into-your-theme/

    But only the names of multiple author show up and individual author box with their individual description, image and name are not showing. What is the problem can you help?

    <!– author box –>

             
    <?php
    $author_id = get_the_author_meta( 'ID' );
    ?>
                       
    <?php   if ( function_exists( 'coauthors_posts_links' ) ) {
    coauthors_posts_links();
    } else { ?>
    <div class="author-box-wrap">
    <?php ?>
      
    <a href="<?php echo esc_url(get_author_posts_url($author_id)) ?>">              
    <?php echo get_avatar(get_the_author_meta('email', $author_id), '96') ?>
                            
    </a>
                      
    
    <div class="desc">
    <div class="td-author-name vcard author"><span class="fn">
    <a href="<?php echo esc_url(get_author_posts_url($author_id)) ?>">
    <?php echo get_the_author_meta('display_name', $author_id) ?></a>
    <?php }?>
    </span></div>
    <div class="td-author-description">
    <?php echo esc_html(get_the_author_meta('description', $author_id)) ?>
    </div>
    <div class="clearfix"></div>
    </div>
    </div>
    <?php  } ?>
    

The topic ‘Multiple Author Box not displaying’ is closed to new replies.