Support » Plugin: Co-Authors Plus » This plugin conflicts with custom taxonomy archive page titles in my theme

Viewing 8 replies - 1 through 8 (of 8 total)
  • Dear plugin authors,

    please fix this bug. It’s quite easy:

    In your function filter_author_archive_title add the argument $title (will be provided by WordPress when applying the filter) and return it if !is_author(). Otherwise you override all other archive titles to null.

    Thanks.

    Pete

    (@perthmetro)

    It’s a pity that Automattic are contributors to this plugin but are not willing to update it?

    I would recommend creating an issue/bug report over here:
    https://github.com/Automattic/Co-Authors-Plus

    I found the issue: https://github.com/Automattic/Co-Authors-Plus/issues/642

    Unfortunately it’s a bit more complicated than I suggested above, because other Plugins like Custom Archive Titles would still be overridden. In addition, the used string “Author” will be not translated.

    I’m not sure why this filter is even necessary. I just removed it and it works for me, event for author pages with multi-author posts.

    Removing it via theme functions.php file:

    
    // CoAuthors Plus has a broken filter for titles. 
    // We will remove it.
    if( class_exists('CoAuthors_Plus' ) ) {
      global $coauthors_plus;
      remove_filter( 'get_the_archive_title', 
      array( $coauthors_plus, 'filter_author_archive_title' ), 
      10 );
    }
    

    Hope that helps someone!

    • This reply was modified 1 month, 1 week ago by  jcdesign.
    • This reply was modified 1 month, 1 week ago by  jcdesign.
    Pete

    (@perthmetro)

    Thanks JC, I’ll try it out tonight and let them in how I go. Much appreciated.

    Pete

    (@perthmetro)

    Works great

    Thank you @jcdesign! I’ve been looking for a fix for hours. I hope the plugin authors get this corrected soon.

Viewing 8 replies - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.