Fix #677 - Output author title with get_the_author
This commit is contained in:
@@ -75,9 +75,7 @@ function roots_title() {
|
||||
} elseif (is_year()) {
|
||||
printf(__('Yearly Archives: %s', 'roots'), get_the_date('Y'));
|
||||
} elseif (is_author()) {
|
||||
global $post;
|
||||
$author_id = $post->post_author;
|
||||
printf(__('Author Archives: %s', 'roots'), get_the_author_meta('display_name', $author_id));
|
||||
printf(__('Author Archives: %s', 'roots'), get_the_author());
|
||||
} else {
|
||||
single_cat_title();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user