Sep
17

Hi,

Many themes are created to simply display the author’s name using the username text by default instead of converting it to a link to the author’s website. We need to simple edit the code to make in order to display author website link in his post.

For that you need to edit the page.php or single.php file of your theme and search for this code:

<?php the_author() ?>

Replace with:

<?php the_author_link(); ?>

Now, it will automatically display a link to the author’s site which is specified in the users profile.

Thanks,

Shane G.

Popularity: 1%

Related posts:
  1. How To Display Category Name Without Link? Hi, The_category() function is used to display categories in the...
  2. How TO Display Latest Author Who Has Modified The Post In WordPress Blog Hi, WordPress 2.8+ has new feature of the_modified_author() which allows...
  3. How To Add Author Page in WordPress Blog Hi, In order to create an author page you will...
  4. Code To Display Login/Register Link At WordPress Blog Hello All, In order to display Login/Register Link in wordpress...
  5. Edit Author Slug WordPress Plugin Hi, This plugin is used to change the Author slug...

Leave a Reply

You must be logged in to post a comment.