WordPress.org

Support

Support » Themes and Templates » Adding author name in the page title

Adding author name in the page title

  • I’m looking to add the author’s nickname in my PAGE TITLE. Not the POST TITLE, I know how to do that.


    <title>All Articles written by AUTHOR'S NICKNAME</title>

    Does anyone know what I can to make this happen?

Viewing 1 replies (of 1 total)
  • You can use the template tag the_author_nickname to print this information to the browser.

    The tag has to be used within the Loop; this page has an example of how to add a Loop inside header.php.

    Hope that’s a start.

Viewing 1 replies (of 1 total)
  • The topic ‘Adding author name in the page title’ is closed to new replies.