Enabling the new version of Yoast SEO causes the wrong author name to be displayed at the top title area on author pages (http://nameofsite.com/authors)
This is occurring for some "guest authors" but not all of them.
*Using latest version of Coauthors Plus.
This occurs regardless of whether titles are "rewritten" in the title settings area.
This was not a problem with the old version of the plugin.
I have deactivated Yoast SEO because no workaround was available.
Same issue here. Would not have even noticed, except that it also puts the wrong author in the meta information for the article (meta property="article:author"), so that it shows the wrong author when shared to Facebook.

Note that the author who is showing up (myself) is the one who originally created the post for the given guest author (Jim).
Had you tried contacting plugin's developers/support about known issues?
That would have been a smart idea.
I will do so. Any suggestions as to what might be going on?
The typical reasons for issues like this are state of WordPress global variables and access to them. It's unfortunately fragile aspect of WordPress architecture.
We are sticking with API functions and such in the plugin, but still sometimes it interacts with other extensions in unexpected ways.
Thanks! I've posted on the coauthors plugin forum. Very much appreciated.
On Thu, Jul 23, 2015 at 4:32 PM, Andrey Savchenko [email protected]
wrote:
The typical reasons for issues like this are state of WordPress globals
and access to them. It's unfortunately fragile aspect of WordPress
architecture.We are sticking with API functions in such in the plugin, but still
sometimes it interacts with other extensions in unexpected ways.—
Reply to this email directly or view it on GitHub
https://github.com/Yoast/wordpress-seo/issues/2159#issuecomment-124218890
.
Please let us know if there are any issues in code on our side that need to be fixed. Outside of that it's not very actionable at the moment.
I found this filter that works for me to modify the name of the author and get it right.
It does an override of the wpseo title (yoast seo) and you can modify as you wish the sentence.
here's the link: https://gist.github.com/blogjunkie/782f3ec48b41c4d7dce1
Luca
Having dived into this, it seems to be due to the way author is retrieved by Yoast is not filtered by Co-Author's Plus. I haven't figured out a way the best way to resolve this between two plugins, but the work around is to filter on wpseo_title. The problem was figuring out how Yoast determined the author. So diving in my solution was:
public function addHooks() {
add_filter( 'wpseo_title', [ $this, 'filterAuthorTitle' ] );
}
public function filterAuthorTitle( $title ) {
if ( ! is_author() ) {
return $title;
}
$original_display_name = get_the_author_meta( 'display_name', get_query_var( 'author' ) );
$author = get_queried_object();
$author_display_name = $author->display_name ;
return str_replace( $original_display_name, $author_display_name, $title );
}
@ShinjiLeery's solution worked. @jpresley23's did not.
@qwik3r That's interesting. What version of the plugins are you on and what version of WordPress? Unfortunately @ShinjiLeery's solution didn't work for me.
Most helpful comment
I found this filter that works for me to modify the name of the author and get it right.
It does an override of the wpseo title (yoast seo) and you can modify as you wish the sentence.
here's the link: https://gist.github.com/blogjunkie/782f3ec48b41c4d7dce1
Luca