WordPress.org

Ready to get started?Download WordPress

Forums

"postinfo" contains rel="author" (4 posts)

  1. vogella
    Member
    Posted 3 years ago #

    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

  2. vogella
    Member
    Posted 3 years ago #

    I believe the file which is author-template.php in in wordpress include folder.

  3. vogella
    Member
    Posted 3 years ago #

    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?

  4. Undecided as of yet.

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

Topic Closed

This topic has been closed to new replies.

About this Topic