Tweet Blog Post Without A Plugin

Since my last post on the “Top 10 Wordpress plugins”, I had read lots of readers asking for a Twitter Wordpress Plugin. I got this tip from John Chow’s Blog Post and all you need to do is to modify your blog post entries in the file to add in the following code below:

<a rel=”nofollow” href=”http://twitter.com/home/?status=Reading @Gathersuccess- <?php the_title(); ?> http://gathersuccess.com/?p=<?php the_ID(); ?>”><img src=”http://www.gathersuccess.com/images/twitter.jpg” alt=”Tweet This” /> <strong>Tweet This Post!</strong></a>

Insert the above code and change to your domain and twitter name where I have bold them above to your Wordpress single.php file at the point you want the Tweet link to show up. For my case, it is just below the blost post.

You will noticed the link is the default Wordpress URL which is not SEO friendly. The reason you do this is because Twitter has limited 160 characters so you cannot put in the full url.

The reason, I did not want to install another plugin as this simple code would do the job and this will take up less resources in the Wordpress engine.

If you’re new here and like what you read, please subscribe to my blog feed or sign up for free email updates. Thanks for visiting!

Comments

22 Responses to “Tweet Blog Post Without A Plugin”
  1. Blog Tips says:

    That is pretty neat. I will have to add this to my twitter account where I only post things about twitter.

    Blog Tips’s last blog post..5 Tips For Daily Cash

  2. Alvin Phang says:

    Need some comment on the new layout guys :)

  3. Awesome tip! I’m a big fan of doing things without plugins if I can, my social bookmarks are all hardcoded to help with speed on my blog.

    Christopher Ross’s last blog post..How to make a post sticky in WordPress

  4. Hi Alvin

    This is a great plugin, but I think it doesn’t work on UBT Theme by Carl.

    I had inserted the code and change the border words you instructed, but I can’t see the image and the link was this –

    “http://www.thebadblogger.com/sex-secrets/%E2%80%9Dhttp://twitter.com/home/?status=Reading ”

    I even try testing by not changing anything in the code you had given but still no luck, I still can’t see the little twitter bird logo and also the link cannot work too.

    Any suggestion ?

    The Bad Blogger

    TheBadBlogger’s last blog post..You Can Hype But Don’t Lie !

  5. Alvin

    This seems like a great idea, and I love the image you use for your Twitter link but from the blog post I can’t tell where to insert the lines of code.

    Insert in which file??? Where???

    Thanks for the info, but would you mind clarifying for those of us who are…um…not coders?

    Thanks again!

  6. Jeff says:

    Alvin,

    Can you tell me where I should post this code
    into the single.php code?

    Thanks

    Jeff

    Jeff’s last blog post..Copy n Profit Google Adwords Course Review

  7. @Jeff / @Kathleen

    in the singles.php file, you can add the line of text immediately after the to have it appear in the text following the content. Remember you still have to change a few things for it to work on your blog, I recommend using the following:

    <a rel=”nofollow” href=”http://twitter.com/home/?status=Reading @[YOURTWITTERNAME] – /?p=”>Twitter.

    Christopher Ross’s last blog post..iGoogle by Apple?

  8. hi alvin
    where i should post these code?

  9. This is awesome! Thank you. I’m going to use it right now

  10. Bo Tipton says:

    I am like the others where does it go? To show you how much I know about code to me it is something that the military uses. Thank goodness for outsourcing!!!!!!!

    Bo Tipton
    The Ornery Marketer

    Bo Tipton’s last blog post..Can I Make Money In The Next Thirty Days

  11. Agent 001 says:

    Nice hack. I would like to see more.

    Agent 001’s last blog post..Seagate Free Agent Family and I

  12. Although I use OnlyWire for this -which submits to dozens of other social networks along with Twitter at one click- this is still a neat little script trick…thanx, I just installed the coded!

    Caleb (Market Secrets Blogger)’s last blog post..How to Finally Make Money Using Affiliate Programs

  13. Very neat and useful code. But I found some problems using it..
    Ben

    Make Money Online’s last blog post..Make Money Online, Without Getting Scammed

  14. Parimal says:

    nice and simple plugin. the best thing is it is free and we can all use it without spending a dime.

    Thanks alvin for sharing this plugin.

    Parimal’s last blog post..Keep Your Body Healthy For Fewer Skin Tags,Moles And Warts

  15. Atul says:

    thanks just deactivated tweetmeme button and installed this code amzed for such a small cod ethey were using so huge plugin

    Atul’s last blog post..Happy Birthday Katrina Kaif

Speak Your Mind

Tell us what you're thinking...
and oh, if you want a pic to show with your comment, go get a gravatar!