Hi @fpmsummer,
It seems they just released an update (3.2.2), which also seems to have a related bug-fix:
Fix broken author ordering in 4.7+ (props mslinnea)
If that doesn’t fix the issue, I’ll definitely check into it 🙂
Thread Starter
Summer
(@fpmsummer)
Hi Sybre!
No, that fix doesn’t address this issue.
See http://www.popculturegeeks.com/author/rhonda-moore/
The archive title says “Author: Summer Brooks”, but if I deacticate TSF, it will say “Rhonda Moore”.
I don’t recall which update happened that changed this, but both plugins have had updates over the past several months… I’m annoyed that I didn’t notice until this past week 🙂 Could have helped narrow this down.
Thanks for confirming @fpmsummer!
I’ve added this on my to-do list for the next patch.
Hi @fpmsummer,
The issue is that the required global variable $authordata isn’t rewritten at query initialization, but rather at just before the post displays.
This means TSF can’t read the author data through default (and recommended) WordPress functions.
This essentially means that the plugin’s front-end mechanism isn’t really according to WordPress’ standards, and the main reason for this is because WordPress internally can’t support “co-authors”.
To fix most of this, Co-Authors Plus has a non-static method called fix_author_page().
Alas, that method is called too late for TSF, in fact, it’s “JIT” (Just In Time) for the content.
To fix this, the plugin has to fix the query earlier.
From the outside, we can access the fixing method through global $coauthors_plus.
So, this is my suggestion:
add_action( 'get_header', function() {
global $coauthors_plus;
if ( is_object( $coauthors_plus ) && is_callable( array( $coauthors_plus, 'fix_author_page' ) ) ) {
$coauthors_plus->fix_author_page();
}
} );
You can paste that snippet in your theme’s functions.php file to see if it works for you; it did for me!
I’m also pinging Co-Author Plus plugin authors, so they might be able to fix this internally 🙂
@danielbachhuber
@batmoo
Cheers!
Hi,
I’m no longer maintaining Co-Authors Plus, but I am working on a new plugin called Bylines if you’re interested.