How To Show Author Info In WordPress

Quite often it is required to show little information about the author , beneath the post written by him/her. One of the many advantages of showing author info is that it helps in building a network, as the readers of the blog tend to connect more with the author in such a way. So heres how its done .

Inserting Author Info

First of all locate “_authorinfo.php” or “authorinfo.php” in your theme files. If you have one then use the following code :-

<?php include(THEME_LIB.’/_authorinfo.php’);?> or

<?php include(THEME_LIB.’/authorinfo.php’);?>

The above code will simply display “Author Info”, anywhere you put this code.

If you want to display author info in the post then (as is desirable in most of the cases), you will need to use conditional PHP statement, something like this :-

Author Info In Wordress

<?php if(is_single()):?>
<?php include(THEME_LIB.’/_authorinfo.php’);?>
<?php endif;?>
or
<?php if(is_single()):?>
<?php include(THEME_LIB.’/authorinfo.php’);?>
<?php endif;?>

Customizing Author Info Box

To customize Author Info box, locate file “_authorinfo.php” or “authorinfo.php”, in your theme files. Following codes will help you in the process  of customization.

To call name of the author use :-

<? php the_author(); ?>

To call URL of the author (in case the author is a guest), use :-

<? php the_author_url(); ?>

For number of posts by the author, use :-

<? php the_author_posts(); ?>

Comments

Similar articles

How To Use No Follow Attribute Effectively In Your Blog

After introduction of “No-Follow” attribute by Google, webmasters have been figuring out ways to use it effectively and more importantly to use it in a manner so as to retain as much link juice as possible. There are millions of online texts available on how to use “No Follow” attribute effectively

How To Use Update Services In WordPress

WordPress provides a facility to ping your updates to other blogs/sites i.e it is a way to let other people know that you have updated your blog’s content. Letting other sites/blog know about your updates help in getting better SERP for your blogpost, so having a well managed Ping List is a must for

Increase Traffic - Do You Really Need It

You will find millions of articles on how to increase traffic to your blog. There are thousands of sites claiming to bring traffic to your blog . A lot has been said, done, implemented and thought of to bring traffic to your blog. But the question is do you really need it, you might say “Are you a j

Tips To Handle Blog Crashes In WordPress

Many at times it happens that your blog simply CRASHES and the worst part is that, you don’t know why. It can happen while customizing theme coding, plugin etc or due to some conflicts between some plugins. And if you are a newbie then this problem is only going to get worse. However you can still g

3 Best Ways To Offer RSS Feed Updates Via SMS To Your Blogreaders

The world is getting smaller day by day. In earlier days computer was a mammoth machine but now it has shrinked to a nice little notebook on your lap. But what lies ahead is “Mobiles”-that everyone carries in pocket. The whole world of information can now be accessed through that tiny device called

4 Best Tips To Decide Domain Name Of Your Blog

Domain Name is a very crucial part of any website or blog. Good domain name can also help you in improving your search rankings apart from making a brand out of the blog/website. So undoubtedly deciding domain name becomes the most important factor. But for a newbie it becomes a cumbersome task to d

*Disclaimer: Any or all product name(s) and company logo(s) used on the website are registered and trademarked by their respective owners.