Go to User > All user > Open that author profile and pick Display name publicly as Username.
The author link has the class .byline so you can easily hide it with CSS:
.entry-meta .byline {
display: none;
}
Thread Starter
sr3
(@sr3)
With this code I could remove the author link
add_filter( 'get_comment_author_link', 'rv_remove_comment_author_link', 10, 3 );
function rv_remove_comment_author_link( $return, $author, $comment_ID ) {
return $author;
But I still don’t know how to show the username instead of the full name?
Thread Starter
sr3
(@sr3)
I don’t want to change the display name manually for every user. I’m looking for some code to set the default display name automatically to the wordpress username.
(@sr3)
10 years, 2 months ago
When someone e.g. posts a comment, their first and last name is displayed instead of the username. How can I change that, so that their username will be displayed automatically?
And how can I remove the author link?