How to Add an Author Info Box in WordPress Posts (2024 Guide)
Displaying an author info box on your WordPress blog posts is a great way to showcase the writers behind your content. An author box helps put a face to a name, allowing readers to learn more about who is writing the articles they are reading. This personal connection builds trust, credibility and loyalty between readers and content creators.
While some WordPress themes have built-in author box functionality, many do not. Luckily, adding an author info box to your posts is relatively simple no matter what theme you are using. In this comprehensive 2024 guide, we‘ll cover multiple methods for adding author boxes in WordPress as well as best practices and tips for making them effective.
Why Add an Author Info Box in WordPress?
Before diving into the technical details, let‘s explore some of the key benefits of using author info boxes on your WordPress site:
Build credibility and trust with readers. Seeing a photo and bio of the actual human behind an article helps readers feel more connected to your brand. It shows there are real people creating your content, not just anonymous or automated systems. Over time, this personal connection makes your site feel more authentic and trustworthy.
Increase pageviews and time on site. An compelling author bio can entice curious readers to click through to the author‘s archive page to see what else they have written. This is an easy way to increase pageviews, reduce bounce rates, and improve overall engagement.
Establish expertise and authority. Author boxes allow you to showcase each content creator‘s credentials, experience, and areas of expertise. For example, if you run a medical site, highlighting authors‘ degrees, certifications and specializations can lend more weight and authority to your content.
Encourage social media following. Most author box plugins and tools allow you to include links to writers‘ social media profiles. This allows interested readers to connect with authors on other platforms, growing your overall audience and reach.
Improve SEO with schema markup. Some WordPress plugins automatically add schema structured data to author boxes. This special code helps search engines better understand and display article authorship, which may provide a slight boost in SEO.
As you can see, author info boxes serve many purposes beyond just looking nice. When implemented well, they are a powerful tool for growing your blog and deepening reader relationships.
How to Add Author Info Boxes in WordPress
Now that you understand the "why" behind author boxes, let‘s cover four different methods you can use to add them to your WordPress posts:
Method 1: Use Your Theme‘s Built-in Author Box
The simplest way to add an author info box is to use the built-in functionality of your WordPress theme (if it has one). Many popular themes, especially those geared toward blogging and magazines, have author box options included.
To check if your theme supports author boxes, go to Users > Profile in your WordPress dashboard. Scroll down to the "About Yourself" section. Here you should see fields to add a bio and personal information, such as a photo and social media links.
If your theme has built-in author box functionality, filling out these profile fields will automatically display a bio box below posts written by that user. Each theme will format and position the author box differently.
To test how yours looks, create a new post authored by the user whose profile you just filled out. Preview or publish the post and scroll to the bottom to see if an author box appears. If so, you‘re all set! Simply repeat the process for any other contributing authors on your site.
Method 2: Install an Author Box Plugin
If your theme does not have built-in author box functionality, the next easiest option is to use a plugin.
There are dozens of WordPress plugins designed specifically for adding author info boxes to posts. As of 2024, some of the most popular options include:
- Starbox – Author Box
- Simple Author Box
- Meks Smart Author Widget
- Molongui Author Box
- WP Author Box Lite
Most of these are free to use, with premium upgrades available for advanced features. To add one to your site, go to Plugins > Add New in your WordPress dashboard and search for "author box."
Preview a few options and choose the one that best fits your needs and design preferences. For example, some display the author box at the bottom of posts, while others add it to your sidebar. Some have social icons and "latest posts" links built-in, while others are a simple bio only.
Once you‘ve chosen a plugin, install and activate it on your site. Each one will have its own unique settings, but in general you can expect to configure:
- Where the author box appears (posts, pages, archives, etc.)
- What user fields to include (photo, bio, website, etc.)
- Whether to display social media profile links
- Color and style options to match your theme
Some plugins will automatically fill in author info from each user‘s profile, while others have separate settings pages. Refer to the documentation of the specific plugin you install for setup details.
After configuring your plugin settings, test how the author box looks by previewing a post. Most will automatically display it based on the post author. If you don‘t see it, try clearing your browser cache or reaching out to the plugin developer for support.
Method 3: Manually Add Code to Your Theme
For more advanced users who want total control over their author box design and functionality, you can manually add code to your WordPress theme files.
Warning: We only recommend attempting this method if you are comfortable with coding and confident in your ability to edit theme files. Incorrectly modifying code can break your site. Always make a backup before editing core WordPress files.
To manually add an author box, you‘ll need to create a PHP function that retrieves the necessary user data (bio, photo, social links) and then outputs it in HTML. This HTML can then be styled with CSS to match your site design.
Here‘s a basic example of what this function might look like:
function wpb_author_info_box() {
global $post;
// Detect if author has a bio
if ( get_the_author_meta( ‘description‘ ) ) {
// Get author data
$display_name = get_the_author_meta( ‘display_name‘ );
$user_description = get_the_author_meta( ‘user_description‘ );
$user_website = get_the_author_meta(‘url‘);
$user_posts = get_author_posts_url( get_the_author_meta( ‘ID‘ ) );
// Add byline, photo, bio
$author_details = ‘<div class="author-info">‘;
$author_details .= ‘<div class="author-avatar">‘. get_avatar( get_the_author_meta(‘user_email‘), 90 ) . ‘</div>‘;
$author_details .= ‘<div class="author-description">‘;
$author_details .= ‘<h3 class="author-name">About ‘. $display_name . ‘</h3>‘;
$author_details .= ‘<p class="author-bio">‘ . get_the_author_meta(‘description‘) . ‘</p>‘;
// Add author links
$author_details .= ‘<p class="author-links"><a href="‘. $user_posts .‘">View Posts</a>‘;
if ( ! empty( $user_website ) ) {
$author_details .= ‘ | <a href="‘ . $user_website .‘" target="_blank" rel="nofollow">Website</a></p>‘;
} else {
$author_details .= ‘</p>‘;
}
$author_details .= ‘</div></div>‘;
echo $author_details;
}
}To use this code, you would need to add it to your theme‘s functions.php file. Then, you can display the author box by adding this line of code where you want it to appear in your template files (e.g. single.php):
<?php wpb_author_info_box(); ?>Again, the exact code will vary based on your specific needs and theme setup. You may need to work with a developer to create a custom solution.
Once you have the author box displaying, you can style it to match your site by adding CSS either in your theme stylesheet or the WordPress customizer. Adjust the colors, alignment, typography and spacing until you‘re happy with the design.
Method 4: Use a Page Builder Plugin
Finally, if you use a page builder plugin like Elementor, Beaver Builder, Divi or SeedProd to design your WordPress site, you can use it to create custom author boxes.
Most page builder plugins have widgets or modules you can drag and drop onto your post templates. For example, SeedProd has a "Theme Builder" mode that allows you to completely customize your post and page layouts.
One of the elements available is an "Author Box" block. Simply drag this onto your single post template and configure the settings in the left-hand panel.
In SeedProd, you can choose what data to display (photo, bio, name, title), style the colors and typography, set the alignment and spacing, and more. This gives you complete control over the design without needing to touch any code.
Once you publish your changes, the custom author box will display on all posts that use that template. You may need to update your author profiles to ensure the proper data pulls in.
The beauty of this method is that it‘s quick and works seamlessly with your existing page builder setup. The downside is that it only works for sites using a compatible plugin, which often require a paid license.
Best Practices for Author Info Boxes
No matter which method you use to add author boxes to your WordPress posts, there are some best practices to keep in mind:
Keep author bios brief. Aim for around 50-100 words that provide a quick snapshot of the writer‘s background, expertise, and personality. Avoid long paragraphs that will lose reader attention.
Use a professional photo. Choose a high-quality, friendly headshot that will help readers connect with the author. Make sure it‘s cropped and optimized for fast loading times.
Include relevant links. Add links to the author‘s website, social profiles, or other relevant content. Just be selective – too many links can look spammy and overwhelming.
Customize the design. Match the author box styling to your overall site branding for a cohesive look. Use colors, fonts and spacing that fit with your theme.
Place it strategically. Most sites display author boxes at the end of blog posts, where readers will naturally look next after finishing an article. Some also add abbreviated author boxes in the sidebar. Consider which placement will be most effective for your site layout and audience.
Keep it up to date. Remind authors to periodically update their bios and photos as they grow in their careers. Out-of-date information can undermine credibility.
By following these tips, you can ensure your author info boxes are an asset to your site and not an afterthought. A little effort upfront to optimize them can pay off in the long run.
Frequently Asked Questions
Still have questions about using author info boxes in WordPress? Here are answers to some common queries:
How do I add social media icons to my author box?
Most WordPress author box plugins have fields to input social media profile links. Once added, the plugin will automatically display the corresponding icons in the author box. For manual code, you can add the social links to the $author_details output and style them with CSS.
Can I display an author box on pages in addition to posts?
This depends on your specific theme and plugin setup. Some will have options to enable the author box on other post types like pages, while others are limited to blog posts only. If using manual code, you can add your author box function to any template file, like page.php.
What size image is best for author photos?
The ideal author photo size will vary based on your site design, but in general a square shape around 250×250 pixels is a good rule of thumb. Larger images will load slower, so aim to keep the file size under 200 KB for best performance.
How can I add an author box to my sidebar?
Some WordPress author box plugins give you the option to display a box in your sidebar as well as posts. If yours doesn‘t, you can use a text widget to manually add HTML and pull in the necessary author data. Just keep in mind that the sidebar version will be static, not dynamic to each post.
Can I create multiple author box designs for different post types?
If using a plugin, check the settings to see if it supports custom designs per post type. If coding your own solution, you can create multiple author box functions and call them conditionally based on the post type. For example:
if ( is_single() ) {
wpb_post_author_info_box();
} elseif ( is_page() ) {
wpb_page_author_info_box();
}This would display a different author box design for single posts vs. static pages.
I have multiple authors with the same name. How can I differentiate them?
If you have multiple authors with the same name, make sure to fill out the "Nickname" field in each of their WordPress profiles. You can then adjust your author box code to display the nickname instead of the first and last name. This will allow readers to tell the difference between "John Smith" and "John Smith 2."
Do I need an author box if I‘m the only writer on my site?
Even single-author blogs can benefit from an author info box. It helps build your personal brand and gives readers an easy way to learn more about you. That said, you may want to make your author box more extensive than a simple bio. Consider highlighting your professional accomplishments, areas of expertise, or even adding a video introduction.
What should I do if my author box is not displaying?
If your author box is not showing up on your posts, first check that you have filled out your author profile completely in the Users section of your dashboard. Next, make sure your theme supports author bios or that your plugin is properly configured and up to date. If you recently made changes to your site, try clearing your cache as well. If the issue persists, reach out to your theme or plugin developer for assistance.
Conclusion
Adding an author info box to your WordPress posts is a smart way to build credibility, increase engagement, and foster a personal connection with your audience. With the right setup, author boxes can become a valuable asset to your content marketing strategy.
Whether you use your theme‘s built-in functionality, install a plugin, manually add code, or use a page builder, there are plenty of options for WordPress users of all skill levels. Choose the method that works best for your specific site needs and goals.
Once implemented, optimize your author boxes by including relevant information, keeping the design clean, and placing them strategically for maximum impact. By putting your authors front and center, you‘ll create a better experience for readers and a stronger brand for your site.
