Viewing 6 replies - 1 through 6 (of 6 total)
  • I have the same issue! All of the sudden I’m getting ‘duplicate meta description’ errors in Google Webmaster Tools.

    Screenshot of source

    Yep, me too.

    In case anyone still has this problem, someone posted a gist on the original GitHub link above that can fix the issue between Yoast and Co-Authors Plus.

    https://gist.github.com/blogjunkie/782f3ec48b41c4d7dce1

    Thread Starter AaronWebstey

    (@aaronwebstey)

    This is great, thanks! Solves the author page problem.

    Unfortunately, no solution to the FB problem. I feel like enough people use the Yoast plugin that it would make sense to try to fix this.

    Thread Starter AaronWebstey

    (@aaronwebstey)

    I fixed the co-authors/guest author/Yoast facebook issue. Put this in functions.php or your site plugin.

    // Fix guest authors FB issue
    add_filter(‘wpseo_opengraph_author_facebook’, ‘my_wpseo_facebook’);

    function my_wpseo_facebook($fb) {
    if(! function_exists(‘get_coauthors’) )
    return $fb;

    $coauthors = get_coauthors($GLOBALS[‘post’]->id);
    if (!is_array( $coauthors ) || empty($coauthors))
    return $fb;

    foreach ( $coauthors as $coauthor ) {
    if ( ! isset( $coauthor->facebook ) || empty( $coauthor->facebook ) )
    continue;
    return $coauthor->facebook;
    }
    return $fb;
    }

    Hey Aaron,

    While the code on github that bcox posted worked for me, your Facebook workaround didn’t. :/ I pasted it in functions.php right after the github one.

    Any ideas?

    I’m also using Yoast SEO and Co-Authors on the Newsmag theme. (www.cincistreetvibes.org)

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Incorrect author showing up in tag and header’ is closed to new replies.