Archived topic
Update Link Title for my_author_link
5 replies · Started by Jesse on February 20, 2021
Hello,
I used this filter to make the post author link to my about page:
add_filter( 'author_link', 'my_author_link' );
function my_author_link() {
return home_url( 'about' );
}
However, the link title that is associated with this href is still: "View all posts by Author"
How can I customize the href title text?
Best regards,
Jesse
Hi there,
Any chance you can link us to the site in question?
You can use the private information field.
Let me know :)
Here you go, thanks!
I wonder if a solution like this would work for both cases?
https://docs.generatepress.com/article/generate_post_author_output/#custom-author-name
Yes, that worked. Thanks!
No problem :)