How to display multiple authors in Otter's Posts Block

Since 2.6.3 version of Otter Blocks, there is a filter that allows you to customize the response of Post Block's Author field. You can use the ` otter_blocks_posts_author` filter.

For example, suppose you want to display multiple authors using the Co-Authors Plus plugin, you can use the tags that are available from their documentation in combination to this filter:

add_filter( 'otter_blocks_posts_author', function() {
	ob_start();
	coauthors_posts_links();
	$output = ob_get_contents();
	ob_end_clean();
	return $output;
} );

Similarly, you can use other Co-Authors plugins to achieve similar results.

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.

Still need help? Contact Us Contact Us