• Resolved designinfantry

    (@designinfantry)


    <?php
    global $id;
    $mytitle = the_title();
    echo '<a href="https://twitter.com/home?status=' . $mytitle . get_bloginfo('url') .
    '/?p=' . $id . '%20RT%20@nullweknow' . '" title="Tweet">Tweet</a>';
    ?>

    I want to retweet the title, but the above var doesn’t parse the_title() as a url. Can someone help?

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Parse the_title() as a URL’ is closed to new replies.