Support » Theme: Graphy » get_the_author_link Not Working

  • Hello, I am trying to get the author name on blog posts to link to the about page, as opposed to the post list. I have attempted to update the author in the template-tags file. Any help is appreciated. Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Theme Author Takao Utsumi

    (@utsumit)

    Hello,

    What does “the about page” means?

    I want to link the author name to a specific page within the website as opposed to the post list. Is there an easy way to do this?

    Theme Author Takao Utsumi

    (@utsumit)

    In that case, you need to modify template-tags.php line:88 manually.

    Before:
    <a class="url fn n" href="<?php echo esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ); ?>" title="<?php printf( esc_html__( 'View all posts by %s', 'graphy' ), get_the_author() );?>"><span class="author-name"><?php echo get_the_author();?></span></a>

    After:
    <a class="url fn n" href="YOUR URL" title="<?php printf( esc_html__( 'View all posts by %s', 'graphy' ), get_the_author() );?>"><span class="author-name"><?php echo get_the_author();?></span></a>

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