Co-Authors Plus
Display Name, Avatar and Description for both authors. (2 posts)

  1. Animalejourbano
    Posted 1 year ago #

    I have a site that displays the info of the author, avatar, name and description, WITHOUT LINK to the author page. I need it to be displayed separated: Image of avatar, then the name, and then the description.
    It's important that the name doesn't have a link.

    By now I'm using this code to display the author info:

    <div class="autor_articulo clearfix">
    <?php userphoto_the_author_photo(); ?>
    <div class="datos_autor">
    <h4 id="theautor">Acerca del Autor: <?php  the_author(); ?></h4>
    <p><?php  the_author_meta('description'); ?></p>
    </div><!-- /autor -->

    This should appear twice if there are two authors for the article, but I don't know how to do it.

    Any help please! Thanks in advance!!!


  2. Jonáš Jančařík
    Posted 1 year ago #

    As for displaying info for each of the co-authors, have a look at ROB_ST's solution at http://pastebin.com/GgJNcswV (found under http://wordpress.org/support/topic/trying-to-display-multiple-author-bios-with-author-bio-box-and-co-authors-plus?replies=2).

    I think you should be able to use a slightly modified version of the code you have now and wrap in foreach like this:

    foreach( get_coauthors() as $coauthor ):
    //author info code

    For displaying just the (co)author's name (not link), I think this should do:

    echo $coauthor->display_name;

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Co-Authors Plus
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic