Show author display name in author archive.
This commit is contained in:
@@ -74,7 +74,8 @@ function roots_title() {
|
|||||||
} elseif (is_year()) {
|
} elseif (is_year()) {
|
||||||
printf(__('Yearly Archives: %s', 'roots'), get_the_date('Y'));
|
printf(__('Yearly Archives: %s', 'roots'), get_the_date('Y'));
|
||||||
} elseif (is_author()) {
|
} elseif (is_author()) {
|
||||||
printf(__('Author Archives: %s', 'roots'), get_the_author());
|
$author = get_queried_object();
|
||||||
|
printf(__('Author Archives: %s', 'roots'), $author->display_name);
|
||||||
} else {
|
} else {
|
||||||
single_cat_title();
|
single_cat_title();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user