Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Adding multiple author support
  • Loading branch information
Roy committed Jan 25, 2017
1 parent 02b7384 commit 6d64804
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion content-single.php
Expand Up @@ -14,7 +14,18 @@
<?php the_title( '<h1 class="entry-title">', '</h1>' ); ?>
<div class="entry-meta">
<ul class="single-author-tags clearfix" >
<li class="single-author">by: <strong class="less-strong"><?php the_author(); ?></strong></li>
<li class="single-author">by: <strong class="less-strong">
<?php
if ( function_exists( 'coauthors_posts_links' ) ) :
echo coauthors_posts_links( null, null, null, null, false );
else:
printf( '<span class="author vcard"><a class="url fn n" href="%1$s">%2$s</a></span>',
esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),
esc_html( get_the_author() )
);
endif;
?>
</strong></li>
<li class="news-story-date"><?php the_time('F j, Y'); ?></li>
<li class="single-category">
<ul class="post-categories">
Expand Down

0 comments on commit 6d64804

Please sign in to comment.