WordPress.org

Ready to get started?Download WordPress

Forums

Co-Authors Plus
Co-Authors Plus | Separate Co-Author Section Code (1 post)

  1. guitargeek_com
    Member
    Posted 2 years ago #

    Hello Daniel,

    Great Plugin! I'm hoping that you can shed some light on creating a separate DIV section for the Co-Author that will only appear when a second (or third) Contributor is attached to the post.

    Here's my code for the Main Author on my posts:

    // <!-- About The Main Author -->
    <div class="dash"></div>
    <div class="author">
    <h3>About the Author</h3>
    <?php echo get_avatar( get_the_author_email(), '80' ); ?><p>
    <?php the_author_meta('user_description'); ?></p></div>
    <!-- //About The Main Author --> //

    Here's the identical section that will appear below the Main Author - It will only appear when a post with a second (or third) contributor appears. I only want to Contributor to appear in this section when applicable.

    What do I need to change in the code below to get this working with Co-Authors?

    // <!-- About The Contributor -->
    <div class="dash"></div>
    <div class="author">
    <h3>About the Contributor</h3>
    <?php echo get_avatar( get_the_author_email(), '80' ); ?><p>
    <?php the_author_meta('user_description'); ?></p></div>
    <!-- //About The Main Contributor --> //

    I don't see a Co-Author template tag that replaces either the get_the_author_email and the_author_meta (assuming that's what I need to replace)

    Any help appreciated!

    Adam

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

  • RSS feed for this topic
  • Started 2 years ago by guitargeek_com
  • This topic is not resolved
  • WordPress version: 3.2.1