Author Bio

Author bio box in WordPress is sort of a requirement for your personal author profile and specially building your Google Authorship. Creating a PHP code to show your author bio in WordPress is fairly easy, however it needs a little bit of knowledge on copying and pasting of PHP code in the right place of your theme’s function file.

There are some plugins also available which are free and paid both. You can download and install them to your WordPress blog and it will work just fine. However some people like me love to code personally. So here is a quick instructions for setting up your author bio in your WordPress posts.

Okay. So I will explain the above code in a little detail here. The first thing is the function we create ie; ali_author_bio(). This function shows the basic details about the author. Below the author description, it shows the social icons with links. The last line of add_filter tells WordPress to show execute the function after the content is displayed each time.

Open your theme’s functions.php file and paste the above code in bottom. Then open your theme’s style.css file and paste the below code.

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

26

.custom.author_info{

border:1pxdotted#666;

padding:1.0em;

}

.custom.author_infoa{

color:#cc0000;

border-bottom:1pxdotted#fff;

text-decoration:none;

}

.custom.author_infoa:hover{

border-bottom:1pxdotted#cc0000;

}

.custom.author_info.author_photo img{

border:1pxdotted#666;

padding:0.2em;

float:left;

margin:1.0em1.0em1.0em0em;

}

.custom.author_infop{

margin-top:0.8em;

margin-bottom:0.4em;

}

.custom.author_infop.author_email{

text-indent:1.8em;

background:url('images/my-email-icon.gif')0px4pxno-repeat;

}

The above css code is pretty self explanatory. You can adjust the colors and borders as per your theme’s color scheme.

That is all you need to in order to bring the author box in display. Make sure you update the social profile URLs under your user profile in WordPress.

I hope the above tutorial helps. Should you have queries or feel something can be improved, please drop your comment below.