• Resolved Summer

    (@fpmsummer)


    I use Co-Authors Plus and Genesis Co-Authors Plus on several sites, and until recently, the guest author name was in the archives title. Now, the name of the admin user who’s created the guest author is displaying instead of the actual guest author name.

    When I deactivate SEO Framework, behavior returns to expected normal, so with recent updates to both plugins, methinks something changed in how that title is generated.

    See this thread for more details:
    https://ww.wp.xz.cn/support/topic/guest-author-archives-title-incorrect-after-updates/

    Not sure yet if I need to create a template with a different tag in it, but thought you should know about the recent unexpected changes.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Sybre Waaijer

    (@cybr)

    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.

    Plugin Author Sybre Waaijer

    (@cybr)

    Thanks for confirming @fpmsummer!

    I’ve added this on my to-do list for the next patch.

    Plugin Author Sybre Waaijer

    (@cybr)

    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.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Author Archives title changes with recent updates’ is closed to new replies.