Convert php permalink to short url? (3 posts)

  1. dsellers
    Posted 6 years ago #

    I have this code that allows users to send a tweet from my blog. It send a tweet for a specific post:

    <a href="http://twitter.com/home?status=Currently reading <?php the_permalink(); ?>" title="Click to send this page to Twitter!" target="_blank">Tweet This!</a>

    It works great, but I am trying to figure out how to have it convert the permalink to a short url, so the longer urls in my blog will work in Twitter (long urls get cut off). I know there is a wordpress plugin (tweet this) that has this feature, but I can't use that plugin for various reasons.

    Thank you for any suggestions.

  2. jbjweb
    Posted 6 years ago #

  3. dsellers
    Posted 6 years ago #

    Thanks for the reply. I found this solution: http://wpengineer.com/tweet-this-with-wordpress/

    I will try your though because it seems a lot easier. Thanks -

Topic Closed

This topic has been closed to new replies.

About this Topic