title: Wordpress: echo current post permalink
body: <p>I coding social sharing buttons in which I want to link current post in single.php template to social media share links.</p>
  
  <p>The problem when I attach the permalink to share url it don`t give the full url of the post:</p>
  
  <p>I tried <code>http://twitter.com/share?url=&lt;?php the_permalink() ?&gt;</code> but only gave output of <code>/post/69</code> not <code>http://example.com/post/69</code>.</p>
  
  <p>Any suggetions?</p>