Short wordpress URL /?p= in twitter button not showing URL in tweet -


i digdig plugin thing change have shorter url in tweets(not .ly shortner) use example.com/?p=123 instead of example.com/2013/../../... did on autoposting tweets plugin working can not make working on plugin.

this code constucting url

public function constructurl($url, $title,$button, $postid, $globalcfg = ''){      if($this->isencoderequired){         $title = rawurlencode($title);         $url = rawurlencode($url);     }      $twitter_source = '';     if($globalcfg!=''){         $twitter_source = $globalcfg[dd_global_twitter_option][dd_global_twitter_option_source];      }           //format twitter source         $this->baseurl = str_replace(self::vote_source,$twitter_source,$this->baseurl);          $this->constructnormalurl($url, $title,$button, $postid); 

i want url $url = 'example.com/?p=' . $postid; when enter code not showing link.

this code function of button in frontend

function dd_twitter_generate($buttondesign='normal', $source=''){ $post_data = dd_getpostdata();

global $globalcfg; $globalcfg[dd_global_twitter_option][dd_global_twitter_option_source] = $source;  $dd_twitter = new dd_twitter(); $dd_twitter->constructurl($post_data['link'],$post_data['title'],$buttondesign,$post_data['id'],false,$globalcfg);  echo $dd_twitter->finalurl; 

}


Comments

Popular posts from this blog

php - mySql Join with 4 tables -

css - Text drops down with smaller window -

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -