WordPress.org

Support

Support » Plugins and Hacks » Co-Authors Plus » co-author and wp 3.6, twenty thirteen theme

co-author and wp 3.6, twenty thirteen theme

  • 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/

Viewing 1 replies (of 1 total)
  • 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…

Viewing 1 replies (of 1 total)
  • The topic ‘co-author and wp 3.6, twenty thirteen theme’ is closed to new replies.
Skip to toolbar