Substituted 'user_nicename' with 'display_name' to allow the author to change their penname using the "Display name publicly as" from the profile dashboard.
This commit is contained in:
@@ -20,7 +20,7 @@
|
|||||||
} elseif (is_author()) {
|
} elseif (is_author()) {
|
||||||
global $post;
|
global $post;
|
||||||
$author_id = $post->post_author;
|
$author_id = $post->post_author;
|
||||||
printf(__('Author Archives: %s', 'roots'), get_the_author_meta('user_nicename', $author_id));
|
printf(__('Author Archives: %s', 'roots'), get_the_author_meta('display_name', $author_id));
|
||||||
} else {
|
} else {
|
||||||
single_cat_title();
|
single_cat_title();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user