fixes #210 - add author name to archive template title

This commit is contained in:
Ben Word
2012-01-08 12:06:48 -07:00
parent 9da422e008
commit 38821d0dc5

View File

@@ -11,6 +11,12 @@
<?php printf(__('Monthly Archives: %s', 'roots'), get_the_date('F Y')); ?>
<?php elseif (is_year()) : ?>
<?php printf(__('Yearly Archives: %s', 'roots'), get_the_date('Y')); ?>
<?php elseif (is_author()) : ?>
<?php
global $post;
$author_id = $post->post_author;
printf(__('Author Archives: %s', 'roots'), get_the_author_meta('user_nicename', $author_id));
?>
<?php else : ?>
<?php single_cat_title(); ?>
<?php endif; ?>