WordPress.org

Ready to get started?Download WordPress

Forums

Adding author name in the page title (2 posts)

  1. spaced
    Member
    Posted 7 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
    Member
    Posted 7 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

Tags

No tags yet.