DiggingIntoWordPress

by Chris Coyier & Jeff Starr

Custom Tweet Button for WordPress

Nicolas Gallagher:

How to create a custom Tweet Button for WordPress using the bit.ly and Twitter APIs. The HTML and CSS is completely customisable and there is no need for JavaScript. PHP is used to automatically shorten and cache the URL of a post, fetch and cache the number of retweets, and populate the query string parameters in the link to Twitter.

Comments are closed. Contact us with any critical information. Thank you!

Code is poetry