Adding author name in the page title (2 posts)

  1. spaced
    Posted 9 years ago #

    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?

  2. onocrotalus
    Posted 9 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.