WordPress.org

Support

Support » Requests and Feedback » "postinfo" contains rel="author"

"postinfo" contains rel="author"

  • Hello,

    Google recently introduced authorship support for there search: http://www.google.com/support/webmasters/bin/answer.py?answer=1229920

    This requires linking to a authors page which is again linked from a Google Profile. Also the Profile needs to be link from a Google Profile.

    Unfortunately WordPress adds the rel=”author” flag in its postinfo class which breaks the link, e.g.

    <div class=”postinfo”>by / July 12th, 2011</div>

    Could you change this or tell me how to change it?

    Best regards, Lars

Viewing 3 replies - 1 through 3 (of 3 total)
  • I believe the file which is author-template.php in in wordpress include folder.

    I changed the following, the original line I adjusted was: ‘‘,
    —————-
    function the_author_posts_link($deprecated = ”) {
    if ( !empty( $deprecated ) )
    _deprecated_argument( __FUNCTION__, ‘2.1’ );

    global $authordata;
    if ( !is_object( $authordata ) )
    return false;
    $link = sprintf(
    %3$s‘,
    get_author_posts_url( $authordata->ID, $authordata->user_nicename ),
    esc_attr( sprintf( __( ‘Posts by %s’ ), get_the_author() ) ),
    get_the_author()
    );
    echo apply_filters( ‘the_author_posts_link’, $link );
    }

    ————-

    I guess the question is still if the template should be adjusted for everyone?

    Undecided as of yet.

    You can do it in your theme via this method: http://yoast.com/wordpress-rel-author-rel-me/

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘"postinfo" contains rel="author"’ is closed to new replies.