With a blog that has multiple authors, you may want to display posts that are related to the current post but written by the same author. In this article, we will show you how to display related posts by the same author in WordPress.
While WordPress supports various options for displaying related posts on your website, posts will be selected from all authors contributing to your content. If you wish to filter the selection to only include posts by the same author, you can do so using the Similar Posts plugin.
The plugin is one of many “related posts” plugins available for WordPress, however, it includes a wide assortment of options for controlling the display, layout, and selection of posts.
To get started, log into your WordPress administration dashboard, then head for Plugins > Add New. Search for “Similar Posts”, then install and activate the plugin.

Once activated, navigate to Settings > Similar Posts to configure the plugin’s settings.

Tabs across the top of the Settings page allow you to customize the selection, formatting, and display of related posts. At the bottom of the General tab, click the dropdown menu next to Match the current author’s posts and select Yes.

Next, you need to switch to the ‘Placement’ tab and activate the ‘Output after post’ option. You can also edit the output template by editing the text in the ‘Parameters’ box.

Don’t forget to click on the ‘Save Settings’ button to store your changes.
You can now visit any single post on your website, and you’ll see related posts by the same author after the post content.
This method requires you to add code to your WordPress theme files. This code snippet will allow you to display related posts by the same author. To do this we need to add some code into both the functions.php page and the single.php page.
Functions.php
First, add the following to your functions.php page.
function get_related_author_posts() {
global $authordata, $post;
$authors_posts = get_posts( array( ‘author’ => $authordata->ID, ‘post__not_in’ => array( $post->ID ), ‘posts_per_page’ => 10 ) );
$output = ‘<ul>’;
foreach ( $authors_posts as $authors_post ) {
$output .= ‘<li><a href=”‘ . get_permalink( $authors_post->ID ) . ‘”>’ . apply_filters( ‘the_title’, $authors_post->post_title, $authors_post->ID ) . ‘</a></li>’;
}
$output .= ‘</ul>’;
return $output;
}
This will get posts by the current author where the post ID is not the current post and gets a maximum of 10 results.
Single.php
Now we have the function in the functions.php file we can use this inside the single.php file. Place a call to this function where you want this list appears.
<?php echo get_related_athor_posts(); ?>
I hope this article helped you learn how to easily display related posts by the same author in WordPress. If so, I would love to hear about it in the comments below!
K2 Plugins has developed K2 blocks which is a WordPress plugin You can contact us for custom plugin development at our Official site
Your article helped me a lot, is there any more related content? Thanks! https://accounts.binance.com/ru/register?ref=RQUR4BEO
Very informative blog post.Thanks Again.
Asking questions are really nice thing if you are not
understanding something totally, however this piece of writing provides fastidious understanding
yet.
Wow! In the end I got a blog from where I know how to truly get helpful data regarding my
study and knowledge.
Hello my family member! I want to say that this post is awesome,
nice written and come with approximately all significant infos.
I would like to peer more posts like this .
I really love your blog.. Very nice colors
& theme. Did you develop this site yourself? Please reply back as I’m hoping to create
my very own site and would like to learn where you got this from or just what the theme is called.
Cheers!
I just could not depart your site prior to suggesting that I extremely loved the standard info
an individual provide for your guests? Is going to be again steadily to check up on new posts
Your article gave me a lot of inspiration, I hope you can explain your point of view in more detail, because I have some doubts, thank you.
Heya i am for the first time here. I found this board
and I find It really helpful & it helped me out
a lot. I hope to present something again and help others such as you aided me.
I like the helpful information you provide in your articles.
I will bookmark your blog and check again here frequently.
I’m quite certain I’ll learn lots of new stuff right here!
Best of luck for the next!
Howdy! Quick question that’s completely off topic.
Do you know how to make your site mobile friendly? My web site looks weird when browsing from my iphone.
I’m trying to find a theme or plugin that might be able to correct this issue.
If you have any recommendations, please share. With thanks!
After exploring a number of the blog articles on your web site,
I honestly like your way of writing a blog. I book-marked it to my bookmark site list
and will be checking back in the near future.
Please check out my website as well and tell me your opinion.
Hey there! Do you know if they make any plugins to
assist with Search Engine Optimization? I’m trying to get
my blog to rank for some targeted keywords but I’m not
seeing very good success. If you know of any please share.
Thank you!
Hey there! I just wanted to ask if you ever have any trouble with hackers?
My last blog (wordpress) was hacked and I ended up losing a few
months of hard work due to no data backup. Do you have any methods to stop hackers?
These are in fact fantastic ideas in concerning blogging.
You have touched some pleasant things here.
Any way keep up wrinting.
Thanks in favor of sharing such a good thinking, article is fastidious, thats
why i have read it completely
I’m extremely pleased to discover this page.
I need to to thank you for your time for this wonderful read!!
I definitely really liked every little bit of it and i also have you book marked to see new information in your site.
I am regular visitor, how are you everybody? This article posted at this
web site is actually nice.
whoah this weblog is excellent i like reading your posts.
Keep up the great work! You recognize, a lot of people are hunting round for this information, you can aid them greatly.
No matter if some one searches for his vital thing, therefore
he/she desires to be available that in detail, thus that thing is maintained over here.
I couldn’t resist commenting. Well written!
If you are going for best contents like me, simply pay a quick visit this web site
everyday since it gives feature contents, thanks
I was recommended this website by my cousin. I’m not sure whether this post is
written by him as no one else know such detailed about my trouble.
You are wonderful! Thanks!
Hi there very cool blog!! Man .. Excellent .. Superb ..
I’ll bookmark your blog and take the feeds additionally?
I am happy to find numerous helpful info here within the post, we want develop more techniques on this regard, thank
you for sharing. . . . . .
It’s very easy to find out any matter on web as compared to books, as I found this article at this website.