Share link via new Twitter


/ Published in: PHP
Save to your folder(s)

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


Copy this code and paste it in your HTML
  1. <a href="http://twitter.com/intent/tweet?text=<?php the_title(); ?>&url=<?php the_permalink(); ?>" title=”Click to share this post on Twitter”>

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.