Support » Plugins » [Plugin: Twitter Tools] wp.me working under Twitter Tools

  • I’m sure missing something obvious here – but has anyone got Twitter Tools to work with the wp.me url generated from the Stats plugin?

    I’ve got this far in functions.php

    add_filter('tweet_blog_post_url','makewpme');
    
    	function makewpme($url) {
    	$wpmeurl = get_shortlink($post_id);
    	return $wpmeurl;
    	}

    However, this keeps returning my home url, not the post url.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Instead of:

    $wpmeurl = get_shortlink($post_id);

    try:

    $wpmeurl = get_shortlink(get_the_ID());

    NerdGrind.com

    Hi hollywoodgrind

    Thanks for that but still returning site url rather than individual post url using your suggestion.

    Anyone else?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: Twitter Tools] wp.me working under Twitter Tools’ is closed to new replies.