neverblueads logo MarketLeverage logo Hydra Network logo neverblueads logo
logo  

A discussion of earning with the Best Affiliate Programs, SEO, Wordpress Blogging and General Motivational Ideas for Internet Publishers and Affiliate Marketers.


feedburner TwitterCounter for @rehoboth

Blog Icon Wordpress Hack : How to Add a Yahoo Buzz Button to Posts

Posted in Wordpress Hacks, Social News by Dave on August 19th, 2008

Yahoo Buzz Beta  Yahoo has officially launched their new beta social news service called . While it’s nothing new in that it’s a style social news site where members are allowed to submit and vote on popular articles, the one thing that separates Yahoo Buzz from all the other Digg clones is that if an article gets popular enough, it will actually hit the front page of Yahoo. Yes, you read that correctly, the most popular articles will actually hit the Yahoo homepage.

Some guy posted an article detailing how to add a Yahoo Buzz button to your blog posts the hard way but for those of you who don’t mind popping open your favorite PHP editor and tinkering with your Wordpress theme, here’s an automated way to add a Yahoo Buzz button to every post on your blog.

First, you’ll need to visit this page and get the code for one of the Yahoo Buzz buttons. The code I chose, that you can see at the bottom of each article post looks like this…


<script type="text/javascript" src="http://d.yimg.com/ds/badge2.js" badgetype="square">
ARTICLEURL
</script>


You can see the ARTICLEURL tag which is where we will need to insert the url of our story to be added to Yahoo Buzz. This is simple using Wordpress built-in function the_permalink() which simply echoes out the article permalink when called within “the loop”.

To add it to your blog, open your theme’s index.php file and find the spot in the loop where you want to add the button and simple paste this code in that spot…


<script type="text/javascript" src="http://d.yimg.com/ds/badge2.js" badgetype="square">
<?Php the_permalink(); ?>
</script>


If you’re unfamiliar with the Wordpress loop, it is usually the code inside the open and close sections, symbolized by “….” as shown below…


<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
….
<?php endwhile; else: ?>


Additionally, Yahoo Buzz allows other data about an article such as the headline and a summary of the article. If you wish to send a headline or an article title, you can experiment with the Wordpress functions get_the_title() and get_the_content() to pass those values on to the script.

If you have any questions about how to implement this, please feel free to use the comments for this article and I’ll be happy to assist you in any way possible to add the Yahoo Buzz button to your site.

Oh, and if you found this article useful, please don’t forget to Buzz it by clicking the button below.



Like this post? Subscribe to AffiliateBestPrograms RSS feed and never miss a post !!


del.icio.us:Wordpress Hack : How to Add a Yahoo Buzz Button to Posts newsvine:Wordpress Hack : How to Add a Yahoo Buzz Button to Posts furl:Wordpress Hack : How to Add a Yahoo Buzz Button to Posts reddit:Wordpress Hack : How to Add a Yahoo Buzz Button to Posts blogmarks:Wordpress Hack : How to Add a Yahoo Buzz Button to Posts Y!:Wordpress Hack : How to Add a Yahoo Buzz Button to Posts smarking:Wordpress Hack : How to Add a Yahoo Buzz Button to Posts magnolia:Wordpress Hack : How to Add a Yahoo Buzz Button to Posts segnalo:Wordpress Hack : How to Add a Yahoo Buzz Button to Posts gifttagging:Wordpress Hack : How to Add a Yahoo Buzz Button to Posts




10 Responses to 'Wordpress Hack : How to Add a Yahoo Buzz Button to Posts'

Subscribe to comments with RSS or TrackBack to 'Wordpress Hack : How to Add a Yahoo Buzz Button to Posts'.

  1. Joseph@1-800blog on August 19th, 2008

    Very useful post, thank you.

    As requested, I have just submitted this post to Yahoo Buzz. The good news is that you don’t have to register if you already have a yahoo account and that is pretty neat.

  2. Gogimon on August 21st, 2008

    wow this is great!

    Its a little incredible that someone could get a article on the front page of Yahoo.

    It would probably take a lot of ” diggs “

  3. webtraffic.org.uk on August 24th, 2008

    can we compare the traffic a blog or website will recieve when it hits first page on Digg and first page on yahoo? i guess propeller works in a similar fashion. Thanks for the great post!

  4. webtraffic.org.uk on August 24th, 2008

    and yes…thanks for the wordpress code!

  5. Sarah Hayes on August 25th, 2008

    Thanx for the code, I actually never heard of the Yahoo buzz and it’s interesting that Yahoo are giving this a try, maybe it was the reason they didn’t sell there website to microsoft because they are going to improve there business.

  6. Dave on August 25th, 2008

    You’re welcome. I think Wordpress webmasters should become familiar with editing their themes which is why I prefer to use self-coded hacks instead of plugins.

    Yahoo buzz works wonders for traffic. So far I’ve submitted four stories (trying not to overdo it) and each time I was rewarded with about the same amount of traffic as when you first add a site to Stumbleupon (arounf 150 uniques). I hope that’s not just because buzz is new !!

  7. advanced search on August 25th, 2008

    the great part of this is the ease to login to to the service especially if you already have a yahoo e-mail address. doesn’t everybody have a Yahoo e-mail address?

  8. Ben on August 27th, 2008

    The Add to Any Share/Save/Bookmark plugin already has Buzz in the menu:

    http://wordpress.org/extend/plugins/add-to-any/

    Surprised you don’t have it yet because you have the Add to Any Subscribe plugin above. ;)

    -Ben

  9. Dave on August 27th, 2008

    Thanks for bringing that to my attention Ben. I’m using Add to Any primarily for RSS feed subscription but not for social bookmarking. I’m sure using the tip I provided here for adding the Yahoo Buzz widget in the Wordpress loop, one could accomplish the same thing by using the Add to Any social bookmarking tool.

  10. scott on November 2nd, 2008

    thanks for the codes, I was using a wp-plugin that put the buzz button at the bottom of my posts, which really sucked.

Leave a Reply



This is a dofollow blog, however, if you wish to have your comment approved, please use a human name and not something like "free hosting" or "adsense help" in the name field. I will no longer approve comments that are made solely for the purpose of building backlinks at my expense. ~Thanks Dave.








Categories
Archives

Resdaz Media
AffiliateBestPrograms © 2007-08 Resdaz Media LLC.
All Rights Reserved
Other Resdaz Media Network Sites:
Add to Technorati Favorites

BRDTracker BlogsByCategory.com
Find the best blogs at Blogs.com. feeds4all