Site logo

[Resolved] How to change author URL to “About Page”?

Home Forums Support [Resolved] How to change author URL to “About Page”?

Home Forums Support How to change author URL to “About Page”?

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1625206
    Tom

    Hi,

    I noticed that my author link points to a page (.com/author/author-name) that redirects to the home page. How can I set a custom author link so that I can point it to my About page instead?

    Image here: https://drive.google.com/file/d/1gLFU8nsvihb6A1DGRhCDOXXSegXSMUq-/view?usp=sharing

    Thank you!

    Tom

    #1625393
    Leo
    Staff
    Customer Support

    Hi there,

    Do you only have one author?

    Let me know 🙂

    #1625462
    Tom

    Hmm, right now only 1 author (me) but I intended to add additional authors soon.

    Really, what I’m concerned with is the SEO impact – if Google is crawling the author link and not finding the about page after.

    Preferably, if there’s a way to customize the link URL for each author to a specific page, that would be ideal.

    #1625683
    Leo
    Staff
    Customer Support
    #1626561
    Tom

    Gotcha. Works for a single author. For multiple authors, seems like I could use an IF statement and use the same replacement code to give them a custom URL page. If so, what field should I put in the IF statement?

    #1626824
    Leo
    Staff
    Customer Support

    I believe this should work:

    add_filter( 'generate_post_author_output', function( $output ) {    
        if ( '2' == $author_id ) {
            return '<a href="MY CUSTOM URL">My Name</a>';
        }
    } );
    #1627041
    Tom

    Great thanks, I’ll try that for my next author.

    #1627056
    Leo
    Staff
    Customer Support

    No problem 🙂

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