• dbunit16

    (@dbunit16)


    I have a twitter button on my site, however the tweets are often too long as it uses the permalink. Is there any way just to use the post ID or something in the Twitter link? Please see code below.

    <a>ID) ); /* if(function_exists('twitter_generate_button')) echo twitter_generate_button(); */ ?>"><span class="twitter">Tweet It</span></a>

    Thanks for the help!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Chip Bennett

    (@chipbennett)

    What Plugin are you using to create the Twitter button?

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    What plugin are you using?

    You could change <?php the_permalink() ?> to <?php wp_get_shortlink(); ?> but twitter_generate_button sounds like a plugin to me.

    Thread Starter dbunit16

    (@dbunit16)

    SWEEET! It worked! Thank you!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Permalink and Twitter’ is closed to new replies.