WordPress.org

Ready to get started?Download WordPress

Forums

Co-Authors Plus
co-author and wp 3.6, twenty thirteen theme (2 posts)

  1. coco33
    Member
    Posted 10 months ago #

    Hello,
    I am completly lost to integrate co-author tag in the twentythirteen theme...
    Here is the code where author and bio appear ?
    What should I do ?
    Many thanks

    in function.php >>>

    // Post author
    if ( 'post' == get_post_type() ) {
    printf( '<span class="author vcard"></span>',
    esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),
    esc_attr( sprintf( __( 'View all posts by %s', 'twentythirteen' ), get_the_author() ) ),
    get_the_author()
    );
    }
    }
    endif;

    and in content.php

    <?php if ( is_single() && get_the_coauthor_meta( 'description' ) && is_multi_author() ) : ?>
    <?php get_template_part( 'author-bio' ); ?>
    <?php endif; ?>

    oops and author.php of course >>

    <h1 class="archive-title"><?php printf( __( 'All posts by %s', 'twentythirteen' ), '<span class="vcard">' . get_the_author() . '</span>' ); ?></h1>
    <?php if ( get_the_author_meta( 'description' ) ) : ?>
    <?php get_template_part( 'author-bio' ); ?>

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

  2. coco33
    Member
    Posted 10 months ago #

    So, as I get no answer yet I try this...

    // Post author
    if ( function_exists( 'coauthors_posts_links' )) {
    coauthors_posts_links();
    }

    and it is working ;=)
    now, the bio at the end of the post...

Reply

You must log in to post.

About this Plugin

About this Topic