WordPress.org

Support

Support » How-To and Troubleshooting » [Resolved] the_author_meta

[Resolved] the_author_meta

  • Hello all,

    I am trying to get the author meta information to update the author page. By default, the author pages display:

    Author Archive for username

    I am using the k2 theme and the code to control this is in wp-content/themes/k2/app/display/theloop.php:
    $page_head = sprintf( __('Author Archive for %s','k2_domain'), get_author_name( get_query_var('author') ) );

    Now, I would like to add the URL information to this line so I make the following change:

    $page_head = sprintf( __('Author Archive for %s %s','k2_domain'), get_author_name( get_query_var('author') ), get_the_author_meta('user_url') );

    However, this does not display the URL and the function simply returns an empty string. I have set the URL for that user. I have tried different parameters for get_the_author_meta but they all return an empty string. I found the information about this function here.

    How can I get the url to show up?

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Resolved] the_author_meta’ is closed to new replies.