updated   : May 15, 2012
we now have 588 snippets
By : , on December 14, 2011 9:00 am

Entice stumbleupon visitors with custom message

wordpress snippet

Great little snippet by Filip Stefansson to display a custom message for people visiting via stumbleupon. Add this snippet to your wordpress template a good place is within the header.php.

read more
By : , on November 01, 2011 9:00 am

Automatically add the Google +1 button

wordpress snippet

Adding this snippet to the functions.php of your wordpress theme will automatically add the Google +1 button to your wordpress posts. This is a great little snippet from ottopress.com

read more
By : , on October 14, 2011 9:00 am

Add Tweetmeme button to your post with shortcode

wordpress snippet

Adding this snippet to the functions.php of your wordpress theme will let you add the Tweetmeme button to any location within your post.

read more
By : , on September 19, 2011 9:00 am

Get facebook fan count using get_transient and wp_remote_get

wordpress snippet

I posted a snippet some time ago to get the number of facebook fans this is an updated version using get_transient. Adding this snippet to the functions.php of your wordpress theme will let you cache and display your Facebook fan count using wp_remote_get. Add the second snippet into your wordpress theme in the location you wish to display the count.

read more
By : , on March 16, 2011 9:00 am

Add a linkedin share button widget

wordpress snippet

Adding this snippet to the single.php of your wordpress theme will display a linkedin share button. Be sure to place this code within the loop,

read more
By : , on December 12, 2010 4:00 pm

Blog default short URLS

wordpress snippet

Adding this code snippet to your wordpress theme will display the built in short your for your blog post. You could use something like this for your tweets rather then bit.ly or other URL shorteners.

read more
By : , on December 08, 2010 4:00 pm

Display number Facebook fans

wordpress snippet

Add this to your wordpressd theme and display the number of Facebook fans you have. Make sure to change PAGE-ID to your Facebook fan page ID.

read more
By : , on December 06, 2010 10:00 am

Detect Twitter visitors

wordpress snippet

Adding this PHP code to your wordpress theme will display a message to people that visit your site via Twitter.

read more