Skip to content
This repository has been archived by the owner. It is now read-only.

Adding multiple author support #4

Merged
merged 1 commit into from Jan 25, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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