How to add Yahoo Buzz button to WordPress

Add Yahoo Buzz Button to WordPress
Add Yahoo Buzz Button to WordPress

Visit Yahoo Buzz Button page to find out more about yahoo buttons and styles. They also provide a simple code for button which you have to manipulate to get it working for various CMSs.

Here is a simple code which adds Yahoo Button to wordpress posts.

[php]<script type="text/javascript">
yahooBuzzArticleHeadline = "<?php the_title(); ?>";
yahooBuzzArticleSummary = "<?php the_excerpt(); ?>";
yahooBuzzArticleCategory = "entertainment";
yahooBuzzArticleType = "text";
yahooBuzzArticleId = window.location.href;
</script>
<script type="text/javascript"
src="http://d.yimg.com/ds/badge2.js"
badgetype="text-votes">
</script>
[/php]

You can copy above code and place it wherever you want to display inside the post loop. The code is self explanatory. For various values visit Yahoo Buzz Button page.

It should be between
[php]<?php if (have_posts()) : while (have_posts()) : the_post(); ?>[/php]
and
[php]<?php endwhile; else: ?>[/php]

Above code works great except that it doesn’t accept category. Not sure why. Didn’t get time to figure it out. If someone knows the solution then drop in the comment below.

And yes before commenting that it doesn’t work, don’t forget to delete cache if you are using any cache plugin.

You can see a live working example on movie reviews blog.


Comments

6 responses to “How to add Yahoo Buzz button to WordPress”

  1. Tx for sharing. I just add it in my blog. It doesn’t sends category value to Yahoo Buzz? Do you know why?

    1. No I’ve no clue. Ask Yahoo.

  2. Joanna Avatar

    It doesn’t show count even after submitting.

    1. For me neither. May be Yahoo Buzz is only for Yahoo group’s stories and they block other publishers’ stories. I’ve seen in the past that Yahoo Buzz only accepted stories published on it’s own network.

      Anyway Yahoo Buzz will be another failure for Yahoo. It is just matter of time when.

      No one visits Yahoo Buzz except Yahoo and it’s own family ;)

      1. “No one visits Yahoo Buzz except Yahoo and it’s own family ;)”
        Why do you use it then?

        1. Yahoo Buzz does Buzz sometime. Once upon a time I used to get around 10k hits a day when they just launched it and stories were not so censored.

          Now they delay publishing stories from other publishers than their own.

          But any social geek would know how to crack it ;)

Leave a Reply

Your email address will not be published. Required fields are marked *