
Credit: www.wpbeginner.com
Introduction
WordPress is a great platform for bloggers. It helps you share your thoughts and ideas. But, keeping visitors on your site can be hard. Showing related posts by the same author can help. It keeps your readers engaged. They can read more from the author they like.
Why Show Related Posts by Same Author?
Showing related posts by the same author is good for your site. It can help in many ways:
- Keep readers on your site longer.
- Increase page views.
- Readers find more content they like.
- Build a connection with the author.

Credit: www.youtube.com
How to Display Related Posts
There are many ways to show related posts by the same author. Here are some simple methods:
Using Plugins
Plugins make it easy to add features to your WordPress site. Here are some good plugins to show related posts by the same author:
1. Contextual Related Posts
This plugin helps show related posts. It looks at the title and content. It finds posts that are similar. Here is how to use it:
- Install and activate the plugin.
- Go to the settings page.
- Find the options to show related posts by the same author.
- Save your settings.
Now, related posts by the same author will show up on your site.
2. Yet Another Related Posts Plugin (YARPP)
This plugin is also good. It shows related posts based on content. Here is how to use it:
- Install and activate the plugin.
- Go to the YARPP settings page.
- Find the options to show related posts by the same author.
- Save your settings.
Now, related posts by the same author will show up on your site.
Using Custom Code
If you like coding, you can add custom code. This way, you have more control. Here is a simple way to do it:
- Go to your theme’s functions.php file.
- Add the following code:
function display_related_posts_by_author($content) {
if (is_single()) {
global $post;
$author_id = $post->post_author;
$args = array(
'author' => $author_id,
'post__not_in' => array($post->ID),
'posts_per_page' => 5,
);
$related_posts = new WP_Query($args);
if ($related_posts->have_posts()) {
$content .= 'Related Posts By Same Author
';
while ($related_posts->have_posts()) {
$related_posts->the_post();
$content .= '- ' . get_the_title() . '
';
}
$content .= '
';
wp_reset_postdata();
}
}
return $content;
}
add_filter('the_content', 'display_related_posts_by_author');
- Save the file.
This code will show related posts by the same author. It will be added at the end of the content.
Frequently Asked Questions
How To Display Related Posts By The Same Author In WordPress?
Use a plugin like “Author Related Posts” to show related posts.
Which Plugin Shows Related Posts By The Same Author?
“Author Related Posts” plugin helps show related posts by the same author.
Can I Display Related Posts Without A Plugin?
Yes, you can use custom code in your theme files.
Is Coding Required To Show Related Posts By The Same Author?
No, a plugin can handle it without coding knowledge.
Conclusion
Displaying related posts by the same author is important. It keeps readers engaged. It helps them find more content they like. You can use plugins or custom code. Both ways are easy. Choose the one that works best for you. Happy blogging!