Twitter Tools using wp.me

The easiest way i’ve foud to make Twitter Tools publish direct wp.me link on my twitter account ! Do not change the pluggin, do not change the core, just add a very simple function to function.php in your theme folder.Add this filter to your file, save and update on your website :

add_filter('tweet_blog_post_url','makewpme');

function makewpme($url) {
$wpmeurl = get_shortlink($post_id);
return $wpmeurl;
}

That’s all ! Take care, it may not works with not-WORDPRESS.com not self-hosted. Have a try…
Of course, it’s the same url as you can find on your backoffice when you edit a post.

Get the Twitter Tools plugin : wordpress.org/extend/plugins/twitter-tools/

After my test, you can find this article to the simply adress, like twitter said :

#canalcoffee: Twitter Tools using wp.me http://wp.me/peBOT-PP

Articles similaires :

Comments

  1. [...] Read what you have to do to use the internal wp.me function to shorten your tweets, on my next post “Twitter Tools using wp.me“ [...]

  2. [...] Read what you have to do to use the internal wp.me function to shorten your tweets, on my next post “Twitter Tools using wp.me“ [...]

Submit a Comment