WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. Animalejourbano
    Member
    Posted 8 months 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>
    </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!!!

    http://wordpress.org/plugins/co-authors-plus/

  2. Jonáš Jančařík
    Member
    Posted 6 months 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
    endforeach;

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

    echo $coauthor->display_name;

Reply

You must log in to post.

About this Plugin

About this Topic