[Resolved] Update Link Title for my_author_link

Home Forums Support [Resolved] Update Link Title for my_author_link

Home Forums Support Update Link Title for my_author_link

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1666019
    Jesse

    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

    #1666061
    Leo
    Staff
    Customer Support

    Hi there,

    Any chance you can link us to the site in question?

    You can use the private information field.

    Let me know ๐Ÿ™‚

    #1666073
    Jesse

    Here you go, thanks!

    #1666082
    Leo
    Staff
    Customer Support

    I wonder if a solution like this would work for both cases?
    https://docs.generatepress.com/article/generate_post_author_output/#custom-author-name

    #1666611
    Jesse

    Yes, that worked. Thanks!

    #1666893
    Leo
    Staff
    Customer Support

    No problem ๐Ÿ™‚

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.