Like the blog? Get the book »

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.

© 2009–2026 Digging Into WordPress Built with shapeSpace by Monzilla Media Sitemap RSS Feed Privacy