Muitos blogs, entre eles Mashable e TechCrunch, já adicionaram um botão do Google Buzz. E adicionar o botão “Buzz this!” é tão fácil que você não pode ficar sem integrar seu blog a essa nova rede social, afinal estamos falando do Google.
Abra o arquivo single.php, em /wp-content/themes/<seu_template_atual>/single.php, e localize a linha:
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
Substitua por:
<?php
if (have_posts()) : while (have_posts()) : the_post();
$post_title = the_title('','',FALSE);
$title_for_buzz = str_replace(' ','%20',$post_title);
?>
Isso corrige o erro “Bad value for attribute href on element a: WHITESPACE in QUERY” causado por <?php the_title(); ?>, pois essa função insere no link o título do post contendo espaços em branco. E corrigir isso é importante para que as páginas do seu blog passem pelo Markup Validation Service.
Depois disso, basta escolher uma imagem para seu botão do Google Buzz e inserir o html a seguir no local onde você quer que o botão apareça.
<a href="http://www.google.com/reader/link?url=<?php the_permalink() ?>&title=<?php echo $title_for_buzz; ?>&srcURL=<?php bloginfo('url'); ?>" target="_blank" rel="nofollow external"><img src="<?php bloginfo('stylesheet_directory');?>/images/google-buzz.png" alt="google-buzz" title="Buzz this!" />
Atualização! Mais informações sobre o Google Buzz API.