Do you want to add an author bio box in your WordPress posts? The author bio box is a small section where you can display information about the post author with links to their website and social profiles. In this article, we will show how to add an author info box in WordPress.

Why and When You Need an Author Info Box in WordPress
Seeing an actual person behind the content helps build credibility and strengthens your site’s authority among users.
For single author websites, you can just add an about me page. But for a multi-author WordPress sites, you will need to add an author info box below each post.
The author box encourages authors to interact with readers. It provides an additional incentive to authors to build their own following.
If you accept guest posts from other bloggers on your website, then an author info box will help you gain more traction on your site.
Having said that, let’s take a look at how to easily add an author info box in WordPress posts.
Adding Author Info Box in WordPress Posts
To make it easy, we have created a video tutorial on how to add an author info box that you can watch below.
[youtube https://www.youtube.com/watch?v=gkDPCwpsF70?version=3&rel=0&fs=1&showsearch=0&showinfo=1&iv_load_policy=1&wmode=transparent]
However if you just want to follow text-instructions, then you can follow our step by step tutorial on how to how to add an author info box in WordPress.
There are many different ways that you can use to add an author info section. We will show you a two different plugins as well as the code method. This way you can choose a method that works best for your site.
Method 1: Author Box Below WordPress Posts Using Plugin
Most site owners want to display author information at the end of a post. Here is how you can easily display an author info box at the end of WordPress posts.
First thing you need to do is install and activate the Guerrilla’s Author Box plugin. For more details, see our step by step guide on how to install a WordPress plugin.
Each author on your site will need to add their biographical information and links to their user profiles. They can do this by logging in to their WordPress account on your website and then click on the Profile link from the WordPress admin menu.

As a site administrator, you can also fill in this information yourself by editing each user’s profile. You will need to visit Users » All User page, and then click on the edit link below the user you want to edit.

You can now visit any WordPress post on your site, and you will see the author info box below the post.

The plugin uses the default WordPress avatar system, called Gravatar. Your authors will need to add their photo on Gravatar website. For more information take a look at our guide about Gravatar, and why you should start using it right away.
Customizing Appearance of Author Info Box
Guerrilla’s Author Box plugin comes with very basic CSS. It inherits the link and text colors from your WordPress theme.
However, if you want to customize it, and you are comfortable working with CSS, then you can copy the plugin’s default CSS and paste it in your theme or child theme‘s stylesheet.
Here is a sample CSS that you can use as a starting point. We have changed the background color and made the author photo round instead of square.
03 |
-webkit-box-sizing:border-box; |
04 |
-moz-box-sizing:border-box; |
05 |
-ms-box-sizing:border-box; |
06 |
box-sizing:border-box; |
07 |
border: 1px solid #d0d0d0; |
19 |
.guerrillagravatar img { |
21 |
border:1 px solid #eee; |
37 |
margin: 10px 0 15px 0; |
This is how author info box looked on our demo website after applying this CSS. Yours may look slightly different depending on the fonts and colors used by your WordPress theme.

Method 2: Author Info in Sidebar Widget For Single Posts
The above method is great if you wanted to display the author info below posts. However, some of you may want to display author bio in the sidebar or any widget ready area.
Here is how you can display author info in a sidebar widget.
First thing you need to do is install and activate Meks Smart Author Widget plugin.
Upon activation, you need to visit Appearance » Widgets page. There you will find Meks Smart Author under the list of available widgets. Add this widget to the sidebar where you want to display the author information.

The widget comes with a number of options. Most important option that you need to check is the checkbox next to ‘Automatically detect author’ option.

Click on the save button to store your widget settings. You can now visit your website to see the author information widget in action.

This plugin also fetches user information from their WordPress profile. Your authors will need to fill their biographical information.
Method 3: Adding Author Info Box Using Code
Both methods described above rely on plugins. If for some reason you need to add author info box manually, then here is how you can do it.
First you need to add this code to your theme’s functions.php file or a site-specific plugin.
01 |
function wpb_author_info_box( $content ) { |
06 |
if ( is_single() && isset( $post->post_author ) ) { |
09 |
$display_name = get_the_author_meta( 'display_name', $post->post_author ); |
12 |
if ( empty( $display_name ) ) |
13 |
$display_name = get_the_author_meta( 'nickname', $post->post_author ); |
16 |
$user_description = get_the_author_meta( 'user_description',$post->post_author ); |
19 |
$user_website = get_the_author_meta('url', $post->post_author); |
22 |
$user_posts = get_author_posts_url( get_the_author_meta( 'ID' ,$post->post_author)); |
24 |
if ( ! empty( $display_name ) ) |
26 |
$author_details = '<p class="author_name">About ' .$display_name . '</p>'; |
28 |
if ( ! empty( $user_description ) ) |
31 |
$author_details .= '<p class="author_details">' . get_avatar( get_the_author_meta('user_email') , 90 ) . nl2br($user_description ). '</p>'; |
33 |
$author_details .= '<p class="author_links"><a href="'.$user_posts .'">View all posts by ' . $display_name . '</a>'; |
36 |
if ( ! empty( $user_website ) ) { |
39 |
$author_details .= ' | <a href="' . $user_website .'" target="_blank" rel="nofollow">Website</a></p>'; |
43 |
$author_details .= '</p>'; |
47 |
$content = $content . '<footer class="author_bio_section" >' .$author_details . '</footer>'; |
53 |
add_action( 'the_content', 'wpb_author_info_box' ); |
56 |
remove_filter('pre_user_description', 'wp_filter_kses'); |
This code simply fetches the author information and displays it below WordPress posts. You need to style this author info box so that it looks nice and matches your WordPress theme.
You can use this CSS into your theme or child theme’s stylesheet. Feel free to modify it to meet your needs.
02 |
background: none repeat scroll 0 0 #F5F5F5; |
04 |
border: 1px solid #ccc; |
13 |
border: 1px solid #D8D8D8; |
16 |
margin: 0 10px 10px 0; |
This is how the author info box looked on our demo site.
