Family Encyclopedia >> Electronics

How to Easily Display Related Posts by the Same Author in WordPress

Want to keep readers engaged on your multi-author WordPress site by showcasing more content from the same writer? While standard related posts plugins handle similar articles, they often overlook author-specific recommendations. As experienced WordPress developers, we'll guide you through two reliable methods to display related posts by the current author.

How to Easily Display Related Posts by the Same Author in WordPress

Method 1: Use the Similar Posts Plugin (Recommended for Beginners)

This straightforward approach requires no coding and works perfectly for most sites.

First, install and activate the Similar Posts plugin. See our detailed guide on installing WordPress plugins if needed.

Head to Settings » Similar Posts to configure it.

How to Easily Display Related Posts by the Same Author in WordPress

Start on the General tab. Scroll to 'Match Current Post Author' and select 'Yes.' Disable other matching options to focus solely on the author.

How to Easily Display Related Posts by the Same Author in WordPress

Switch to the Location tab, enable 'Output after publication,' and customize the template in the Parameters box if desired.

How to Easily Display Related Posts by the Same Author in WordPress

Click 'Save Settings.' Now, visit any single post—you'll see the author's related posts automatically appended.

How to Easily Display Related Posts by the Same Author in WordPress

Method 2: Add Custom Code for Related Author Posts

For full control, add this code to your theme's functions.php file or a site-specific plugin. Not comfortable editing files? Follow our code editing tutorial.

function wpb_related_author_posts( $content ) {
	if ( is_single() ) {
		global $authordata, $post;
		$content .= '<h4>Related Posts by Author:</h4>';
		$author_posts = get_posts( array(
			'author' => $authordata->ID,
			'post__not_in' => array( $post->ID ),
			'posts_per_page' => 5
		) );
		$content .= '<ul>';
		foreach( $author_posts as $author_post ) {
			$content .= '<li><a href="' . get_permalink( $author_post->ID ) . '">' . apply_filters( 'the_title', $author_post->post_title, $author_post->ID ) . '</a></li>';
		}
		$content .= '</ul>';
	}
	return $content;
}
add_filter( 'the_content', 'wpb_related_author_posts' );

Refresh a single post, and the list appears below the content.

How to Easily Display Related Posts by the Same Author in WordPress

That's it! These proven methods, tested across countless sites, will enhance user retention. For more, check our essential WordPress tips and tricks.

Subscribe to our YouTube channel for video guides, and follow us on Twitter and Facebook.