Release: Social Buttons Wordpress Plugin
Why don't you subscribe to my blog while you're here? I'm a freelance web developer and I blog about Ruby, Rails, and business online.
Go ahead and subscribe to my RSS feed. Thanks for visiting!
Here’s a Wordpress plugin that allows you to selectively add social network buttons such as digg, sphinn, etc to your posts or theme design.
There’s a stack of these type of plugins out there, but I couldn’t find one that allowed me to add a button for a social network on a per post basis. My main point of pain was that each of my blog posts appeal to different types of social sites so I wanted to be selective with the social buttons I added to each post. For instance, my SEO and marketing posts are better suited to Sphinn, while my technical posts are better suited to Reddit.
Add Buttons Per Post
To scratch my own itch I devised a wordpress plugin creatively called “Social Buttons”. You write a formatted piece of text in your post, and it’s replaced with the button when converted to HTML. It’s kind of like magic, except real, and without cheesy costumes. For example, to add a digg button I write this…

Add you get this result:
You can add more than a single button if you want…

Add you get this result:
Add Buttons To Your Theme, Or All Posts
It’s also possible to use the plugin within your theme. You add a button to your theme (Digg in this case):
<?php echo sb_make_button('digg', 'http://www.alexpooley.com') ?>
Or, add the same button to every single post (Reddit in this case):
# Inside posts.php of your theme.
<?php echo "I'm in a post now:".sb_make_button('reddit', get_permalink()) ?>
Install
Download the Social Buttons Wordpress Plugin and install the plugin as you would install any other plugin. There are further instructions in the readme.txt if you need them.
If you want a social site added to the plugin then let me know. Or, if you need a particular Wordpress plugin built then get in touch.
Save To Delicious

