WordPress.org

Ready to get started?Download WordPress

Forums

Change "posted by [author]" from plain text to link (4 posts)

  1. joyebadejo
    Member
    Posted 4 years ago #

    Hey everyone,

    On my blog, at the top of each post it shows the author of each post in plain text. I want to edit that portion so that it will be a link that will direct the visitor to a page with all the posts from that particular author. How can I go about doing this? I looked at the main page template php file but I couldn't figure out how to configure the link because the author is a variable. Is there a simple solution or will i need to create a new php file with a table for the authors and their ID numbers?

    Thanks for your time

    my blog>> GetFreshKid.com

  2. Taylor Dewey
    Member
    Posted 4 years ago #

    You do need a .php file, named author.php that lists all of a particular author's blog posts. You would then link to that author, if you have pretty permalinks set-up, it will generally looks like http://yourblogname.com/authors/authorname,. but that is easily generated with a function.

    This codex article should answer your questions: Author Templates

  3. Taylor Dewey
    Member
    Posted 4 years ago #

    (ack, dup post, sorry.)

  4. Kannan Sanjeevan
    Member
    Posted 4 years ago #

  5. joyebadejo
    Member
    Posted 4 years ago #

    awesome, I got some things working the way I want. Thank you guys!!

Topic Closed

This topic has been closed to new replies.

About this Topic