Return to Snippet

Revision: 47102
at June 1, 2011 05:13 by adamturtle


Initial Code
<a href="http://twitter.com/intent/tweet?text=<?php the_title(); ?>&url=<?php the_permalink(); ?>" title=”Click to share this post on Twitter”>

Initial URL


Initial Description
Twitter have changed their api, and using the old twitter.com?status=… doesn't work anymore. This uses the new 'Web Intents' method.

Initial Title
Share link via new Twitter

Initial Tags
php, html, wordpress, twitter

Initial Language
PHP