Skip to:
Content
Pages
Categories
Search
Top
Bottom

How to add Google Author recognition to Profiles and Activities?

  • Avatar of gregfielding
    gregfielding
    Participant

    @gregfielding

    I was reading this post by Yoast: http://yoast.com/highlighting-wordpress-authors-search/

    It seems that the rel=”author” attribute will be built-in to WP 3.2 – which will be great for blog authors, but won’t by itself support buddypress Profiles and Activities (permalink.php).

    Here is his solution to add to regular WP blogs:

    `function yoast_rel_author_filter( $link ) {
    if ( false === strpos( $link, ‘rel=”author”‘ ) )
    $link = str_replace ( ‘<a ', '<a rel="author" ', $link );
    return $link;
    }
    add_filter(‘the_author_posts_link’,’yoast_rel_author_filter’,10,1);`

    Any ideas on how we can add buddypress support?

    Here’s a link to the google article: http://www.google.com/support/webmasters/bin/answer.py?answer=1229920&hl=en

Viewing 1 replies (of 1 total)
  • Avatar of gregfielding
    gregfielding
    Participant

    @gregfielding

    Playing with this more, it looks like there are 2 parts to making this work. First, we need rel=”author” attributes on all of the links that go to the profile pages. entry.php, single.php, etc. Second, there should be a link from the profile page to a member’s google profile, with a rel=”me” attribute.

Viewing 1 replies (of 1 total)

You must be logged in to reply to this topic.